/// Sends an RPC response.
///
/// The peer must be connected for this to succeed.
Sends an RPC response.
The peer must be connected for this to succeed.
Sends an RPC response . The peer must be connected for this to succeed .
pub fn send_response(
        &mut self,
        peer_id: PeerId,
        id: (ConnectionId, SubstreamId),
        event: RPCCodedResponse,
    ) {
        self.events.push(NetworkBehaviourAction::NotifyHandler {
            peer_id,
            handler: NotifyHandler::One(id.0),
            event: RPCSend::Response(id.1, event),
        });
    }
pub fn send_response ( & mut self , peer_id : PeerId , id : ( ConnectionId , SubstreamId ) , event : RPCCodedResponse , ) { self . events . push ( NetworkBehaviourAction :: NotifyHandler { peer_id , handler : NotifyHandler :: One ( id . 0 ) , event : RPCSend :: Response ( id . 1 , event ) , } ) ; }
Sends an RPC response.
Sends an RPC response .
&mut self
peer_id
PeerId
id
(ConnectionId, SubstreamId)
event
RPCCodedResponse