// Handle response / failure for a previously received request.
// Remove the request from the list of pending responses, add failure if there is one.
Handle response / failure for a previously received request.
Remove the request from the list of pending responses, add failure if there is one.
Handle response / failure for a previously received request . Remove the request from the list of pending responses add failure if there is one .
pub fn on_res_for_inbound(&mut self, peer: PeerId, request_id: RequestId, result: Result<(), InboundFailure>) {
        self.connections.remove_request(&request_id, &RequestDirection::Inbound);
        if let Err(failure) = result {
            let action = BehaviourAction::InboundFailure {
                peer,
                request_id,
                failure,
            };
            self.actions.push_back(action)
        }
    }
pub fn on_res_for_inbound ( & mut self , peer : PeerId , request_id : RequestId , result : Result < ( ) , InboundFailure > ) { self . connections . remove_request ( & request_id , & RequestDirection :: Inbound ) ; if let Err ( failure ) = result { let action = BehaviourAction :: InboundFailure { peer , request_id , failure , } ; self . actions . push_back ( action ) } }
Handle response / failure for a previously received request.
Handle response / failure for a previously received request .
&mut self
peer
PeerId
request_id
RequestId
result
Result<(), InboundFailure>