/// Sends the given message to a peer by its public key.
Sends the given message to a peer by its public key.
Sends the given message to a peer by its public key .
fn send_to_peer<T: Into<SignedMessage>>(&mut self, public_key: PublicKey, message: T) {
        let message = message.into();
        let request = NetworkRequest::SendMessage(public_key, message);
        self.channel.network_requests.send(request).log_error();
    }
fn send_to_peer < T : Into < SignedMessage > > ( & mut self , public_key : PublicKey , message : T ) { let message = message . into ( ) ; let request = NetworkRequest :: SendMessage ( public_key , message ) ; self . channel . network_requests . send ( request ) . log_error ( ) ; }
Sends the given message to a peer by its public key.
Sends the given message to a peer by its public key .
&mut self
public_key
PublicKey
message
T