pub fn on_res_for_outbound(&mut self, peer: PeerId, request_id: RequestId, result: Result<Rs, OutboundFailure>) {
        self.connections
            .remove_request(&request_id, &RequestDirection::Outbound);
        let action = match result {
            Ok(response) => BehaviourAction::OutboundReceivedRes {
                request_id,
                peer,
                response,
            },
            Err(failure) => BehaviourAction::OutboundFailure {
                request_id,
                peer,
                failure,
            },
        };
        self.actions.push_back(action)
    }
// Handle response / failure for a previously sent request.
// Remove the request from the list of pending responses.
Handle response / failure for a previously sent request.
Remove the request from the list of pending responses.
Handle response / failure for a previously sent request . Remove the request from the list of pending responses .
pub fn on_res_for_outbound(&mut self, peer: PeerId, request_id: RequestId, result: Result<Rs, OutboundFailure>) {
        self.connections
            .remove_request(&request_id, &RequestDirection::Outbound);
        let action = match result {
            Ok(response) => BehaviourAction::OutboundReceivedRes {
                request_id,
                peer,
                response,
            },
            Err(failure) => BehaviourAction::OutboundFailure {
                request_id,
                peer,
                failure,
            },
        };
        self.actions.push_back(action)
    }
pub fn on_res_for_outbound ( & mut self , peer : PeerId , request_id : RequestId , result : Result < Rs , OutboundFailure > ) { self . connections . remove_request ( & request_id , & RequestDirection :: Outbound ) ; let action = match result { Ok ( response ) => BehaviourAction :: OutboundReceivedRes { request_id , peer , response , } , Err ( failure ) => BehaviourAction :: OutboundFailure { request_id , peer , failure , } , } ; self . actions . push_back ( action ) }
Handle response / failure for a previously sent request.
Handle response / failure for a previously sent request .
&mut self
peer
PeerId
request_id
RequestId
result
Result<Rs, OutboundFailure>
&mut self
peer
PeerId
request_id
RequestId
result
Result<Rs, OutboundFailure>