/// Creates a new RFCOMM channel for the provided `server_channel`. Returns a
/// receiver for user data to be sent to the remote peer.
Creates a new RFCOMM channel for the provided `server_channel`. Returns a
receiver for user data to be sent to the remote peer.
Creates a new RFCOMM channel for the provided ` server_channel ` . Returns a receiver for user data to be sent to the remote peer .
pub fn create_channel(
        &mut self,
        server_channel: ServerChannelNumber,
    ) -> mpsc::Receiver<UserData> {
        let (sender, receiver) = mpsc::channel(USER_DATA_BUFFER_SIZE);
        self.active_channels.insert(server_channel, sender);
        receiver
    }
pub fn create_channel ( & mut self , server_channel : ServerChannelNumber , ) -> mpsc :: Receiver < UserData > { let ( sender , receiver ) = mpsc :: channel ( USER_DATA_BUFFER_SIZE ) ; self . active_channels . insert ( server_channel , sender ) ; receiver }
Creates a new RFCOMM channel for the provided `server_channel`.
Creates a new RFCOMM channel for the provided ` server_channel ` .
&mut self
server_channel
ServerChannelNumber