async fn register_piconet_member(
    profile_test_proxy: &bredr::ProfileTestProxy,
    id: bt_types::PeerId,
) -> Result<(bredr::MockPeerProxy, bredr::PeerObserverRequestStream), Error> {
    let (client, server) = f_end::create_proxy::<bredr::MockPeerMarker>()?;
    let (observer_client, observer_server) =
        f_end::create_request_stream::<bredr::PeerObserverMarker>()?;

    profile_test_proxy
        .register_peer(&mut id.into(), server, observer_client)
        .await
        .context("registering peer failed!")?;
    Ok((client, observer_server))
}
/// Use the ProfileTestProxy to register a piconet member with the Bluetooth Profile Test
/// Server.
Use the ProfileTestProxy to register a piconet member with the Bluetooth Profile Test
Server.
Use the ProfileTestProxy to register a piconet member with the Bluetooth Profile Test Server .
async fn register_piconet_member(
    profile_test_proxy: &bredr::ProfileTestProxy,
    id: bt_types::PeerId,
) -> Result<(bredr::MockPeerProxy, bredr::PeerObserverRequestStream), Error> {
    let (client, server) = f_end::create_proxy::<bredr::MockPeerMarker>()?;
    let (observer_client, observer_server) =
        f_end::create_request_stream::<bredr::PeerObserverMarker>()?;
    profile_test_proxy
        .register_peer(&mut id.into(), server, observer_client)
        .await
        .context("registering peer failed!")?;
    Ok((client, observer_server))
}
async fn register_piconet_member ( profile_test_proxy : & bredr :: ProfileTestProxy , id : bt_types :: PeerId , ) -> Result < ( bredr :: MockPeerProxy , bredr :: PeerObserverRequestStream ) , Error > { let ( client , server ) = f_end :: create_proxy :: < bredr :: MockPeerMarker > ( ) ? ; let ( observer_client , observer_server ) = f_end :: create_request_stream :: < bredr :: PeerObserverMarker > ( ) ? ; profile_test_proxy . register_peer ( & mut id . into ( ) , server , observer_client ) . await . context ( " " ) ? ; Ok ( ( client , observer_server ) ) }
Use the ProfileTestProxy to register a piconet member with the Bluetooth Profile Test
Server.
Use the ProfileTestProxy to register a piconet member with the Bluetooth Profile Test Server .
profile_test_proxy
&bredr::ProfileTestProxy
id
bt_types::PeerId
profile_test_proxy
&bredr::ProfileTestProxy
id
bt_types::PeerId