pub fn send_to(
        &mut self,
        recipient: PeerId,
        protocol: ProtocolId,
        message: TMessage,
    ) -> Result<(), NetworkError> {
        let mdata = lcs::to_bytes(&message)?.into();
        self.peer_mgr_reqs_tx.send_to(recipient, protocol, mdata)?;
        Ok(())
    }
/// Send a protobuf message to a single recipient. Provides a wrapper over
/// `[peer_manager::PeerManagerRequestSender::send_to]`.
Send a protobuf message to a single recipient.
Send a protobuf message to a single recipient .
pub fn send_to(
        &mut self,
        recipient: PeerId,
        protocol: ProtocolId,
        message: TMessage,
    ) -> Result<(), NetworkError> {
        let mdata = lcs::to_bytes(&message)?.into();
        self.peer_mgr_reqs_tx.send_to(recipient, protocol, mdata)?;
        Ok(())
    }
pub fn send_to ( & mut self , recipient : PeerId , protocol : ProtocolId , message : TMessage , ) -> Result < ( ) , NetworkError > { let mdata = lcs :: to_bytes ( & message ) ? . into ( ) ; self . peer_mgr_reqs_tx . send_to ( recipient , protocol , mdata ) ? ; Ok ( ( ) ) }
Send a protobuf message to a single recipient.
Send a protobuf message to a single recipient .
&mut self
recipient
PeerId
protocol
ProtocolId
message
TMessage
&mut self
recipient
PeerId
protocol
ProtocolId
message
TMessage