/// Advertises the provided service `defs` with the BR/EDR `profile` service. Returns a Future
/// representing the advertisement on success, Error otherwise.
Advertises the provided service `defs` with the BR/EDR `profile` service. Returns a Future
representing the advertisement on success, Error otherwise.
Advertises the provided service ` defs ` with the BR / EDR ` profile ` service . Returns a Future representing the advertisement on success Error otherwise .
fn advertise(
        profile: &bredr::ProfileProxy,
        defs: Vec<bredr::ServiceDefinition>,
    ) -> Result<BrEdrAdvertisement, Error> {
        let (connect_client, connect_server) =
            fidl::endpoints::create_request_stream::<bredr::ConnectionReceiverMarker>()?;
        let adv_fut = profile.advertise(
            &mut defs.into_iter(),
            bredr::ChannelParameters::EMPTY,
            connect_client,
        );
        Ok(BrEdrAdvertisement { adv_fut, connect_server })
    }
fn advertise ( profile : & bredr :: ProfileProxy , defs : Vec < bredr :: ServiceDefinition > , ) -> Result < BrEdrAdvertisement , Error > { let ( connect_client , connect_server ) = fidl :: endpoints :: create_request_stream :: < bredr :: ConnectionReceiverMarker > ( ) ? ; let adv_fut = profile . advertise ( & mut defs . into_iter ( ) , bredr :: ChannelParameters :: EMPTY , connect_client , ) ; Ok ( BrEdrAdvertisement { adv_fut , connect_server } ) }
Advertises the provided service `defs` with the BR/EDR `profile` service.
Advertises the provided service ` defs ` with the BR / EDR ` profile ` service .
profile
&bredr::ProfileProxy
defs
Vec<bredr::ServiceDefinition>