pub async fn register_profile(&self, profile: Profile) -> Result<ProfileHandle> {
        let (req_tx, req_rx) = tokio::sync::mpsc::channel(1);
        let reg_profile = RegisteredProfile::new(req_tx);
        reg_profile.register(self.inner.clone(), profile, req_rx).await
    }
/// This registers a [Bluetooth profile implementation](Profile) for RFCOMM connections.
///
/// The returned [ProfileHandle] provides a stream of
/// [connection requests](crate::rfcomm::ConnectRequest).
///
/// Drop the handle to unregister the profile.
This registers a [Bluetooth profile implementation](Profile) for RFCOMM connections.
The returned [ProfileHandle] provides a stream of
[connection requests](crate::rfcomm::ConnectRequest).

Drop the handle to unregister the profile.
This registers a [ Bluetooth profile implementation ] ( Profile ) for RFCOMM connections . The returned [ ProfileHandle ] provides a stream of [ connection requests ] ( crate :: rfcomm :: ConnectRequest ) . Drop the handle to unregister the profile .
pub async fn register_profile(&self, profile: Profile) -> Result<ProfileHandle> {
        let (req_tx, req_rx) = tokio::sync::mpsc::channel(1);
        let reg_profile = RegisteredProfile::new(req_tx);
        reg_profile.register(self.inner.clone(), profile, req_rx).await
    }
pub async fn register_profile ( & self , profile : Profile ) -> Result < ProfileHandle > { let ( req_tx , req_rx ) = tokio :: sync :: mpsc :: channel ( 1 ) ; let reg_profile = RegisteredProfile :: new ( req_tx ) ; reg_profile . register ( self . inner . clone ( ) , profile , req_rx ) . await }
This registers a [Bluetooth profile implementation](Profile) for RFCOMM connections.
This registers a [ Bluetooth profile implementation ] ( Profile ) for RFCOMM connections .
&self
profile
Profile
&self
profile
Profile