pub fn register_service_advertisement(
        &self,
        service_defs: Vec<bredr::ServiceDefinition>,
    ) -> Result<bredr::ConnectionReceiverRequestStream, Error> {
        let (connect_client, connect_requests) =
            f_end::create_request_stream().context("ConnectionReceiver creation")?;
        let _ = self.profile_svc.advertise(
            &mut service_defs.into_iter(),
            bredr::ChannelParameters::new_empty(),
            connect_client,
        );

        Ok(connect_requests)
    }
/// Register a service advertisement using the Profile protocol with the provided
/// `service_defs`.
///
/// Returns a stream of connection requests that can be polled to receive new requests.
Register a service advertisement using the Profile protocol with the provided
`service_defs`.

Returns a stream of connection requests that can be polled to receive new requests.
Register a service advertisement using the Profile protocol with the provided ` service_defs ` . Returns a stream of connection requests that can be polled to receive new requests .
pub fn register_service_advertisement(
        &self,
        service_defs: Vec<bredr::ServiceDefinition>,
    ) -> Result<bredr::ConnectionReceiverRequestStream, Error> {
        let (connect_client, connect_requests) =
            f_end::create_request_stream().context("ConnectionReceiver creation")?;
        let _ = self.profile_svc.advertise(
            &mut service_defs.into_iter(),
            bredr::ChannelParameters::new_empty(),
            connect_client,
        );
        Ok(connect_requests)
    }
pub fn register_service_advertisement ( & self , service_defs : Vec < bredr :: ServiceDefinition > , ) -> Result < bredr :: ConnectionReceiverRequestStream , Error > { let ( connect_client , connect_requests ) = f_end :: create_request_stream ( ) . context ( " " ) ? ; let _ = self . profile_svc . advertise ( & mut service_defs . into_iter ( ) , bredr :: ChannelParameters :: new_empty ( ) , connect_client , ) ; Ok ( connect_requests ) }
Register a service advertisement using the Profile protocol with the provided
`service_defs`.
Register a service advertisement using the Profile protocol with the provided ` service_defs ` .
&self
service_defs
Vec<bredr::ServiceDefinition>
&self
service_defs
Vec<bredr::ServiceDefinition>