pub fn send_request(&mut self, peer_id: PeerId, request_id: RequestId, event: RPCRequest) {
        self.events.push(NetworkBehaviourAction::NotifyHandler {
            peer_id,
            handler: NotifyHandler::Any,
            event: RPCSend::Request(request_id, event),
        });
    }
/// Submits an RPC request.
///
/// The peer must be connected for this to succeed.
Submits an RPC request.
The peer must be connected for this to succeed.
Submits an RPC request . The peer must be connected for this to succeed .
pub fn send_request(&mut self, peer_id: PeerId, request_id: RequestId, event: RPCRequest) {
        self.events.push(NetworkBehaviourAction::NotifyHandler {
            peer_id,
            handler: NotifyHandler::Any,
            event: RPCSend::Request(request_id, event),
        });
    }
pub fn send_request ( & mut self , peer_id : PeerId , request_id : RequestId , event : RPCRequest ) { self . events . push ( NetworkBehaviourAction :: NotifyHandler { peer_id , handler : NotifyHandler :: Any , event : RPCSend :: Request ( request_id , event ) , } ) ; }
Submits an RPC request.
Submits an RPC request .
&mut self
peer_id
PeerId
request_id
RequestId
event
RPCRequest
&mut self
peer_id
PeerId
request_id
RequestId
event
RPCRequest