pub fn send_user_data(
        &mut self,
        server_channel: ServerChannelNumber,
        user_data: UserData,
    ) -> Result<(), Error> {
        self.active_channels
            .get_mut(&server_channel)
            .ok_or(anyhow!("No registered server channel"))
            .and_then(|sender| sender.try_send(user_data).map_err(|e| anyhow!("{:?}", e)))
    }
/// Sends the `user_data` buf to the peer that provides the service identified
/// by the `server_channel`. Returns the result of the send operation.
Sends the `user_data` buf to the peer that provides the service identified
by the `server_channel`. Returns the result of the send operation.
Sends the ` user_data ` buf to the peer that provides the service identified by the ` server_channel ` . Returns the result of the send operation .
pub fn send_user_data(
        &mut self,
        server_channel: ServerChannelNumber,
        user_data: UserData,
    ) -> Result<(), Error> {
        self.active_channels
            .get_mut(&server_channel)
            .ok_or(anyhow!("No registered server channel"))
            .and_then(|sender| sender.try_send(user_data).map_err(|e| anyhow!("{:?}", e)))
    }
pub fn send_user_data ( & mut self , server_channel : ServerChannelNumber , user_data : UserData , ) -> Result < ( ) , Error > { self . active_channels . get_mut ( & server_channel ) . ok_or ( anyhow ! ( " " ) ) . and_then ( | sender | sender . try_send ( user_data ) . map_err ( | e | anyhow ! ( " " e ) ) ) }
Sends the `user_data` buf to the peer that provides the service identified
by the `server_channel`.
Sends the ` user_data ` buf to the peer that provides the service identified by the ` server_channel ` .
&mut self
server_channel
ServerChannelNumber
user_data
UserData
&mut self
server_channel
ServerChannelNumber
user_data
UserData