// Remove a request from the list of pending responses.
Remove a request from the list of pending responses.
Remove a request from the list of pending responses .
pub fn remove_request(&mut self, request_id: &RequestId, direction: &RequestDirection) {
        self.pending_responses.values_mut().for_each(|pending| {
            match direction {
                RequestDirection::Inbound => pending.inbound_requests.remove(request_id),
                RequestDirection::Outbound => pending.outbound_requests.remove(request_id),
            };
        });
    }
pub fn remove_request ( & mut self , request_id : & RequestId , direction : & RequestDirection ) { self . pending_responses . values_mut ( ) . for_each ( | pending | { match direction { RequestDirection :: Inbound => pending . inbound_requests . remove ( request_id ) , RequestDirection :: Outbound => pending . outbound_requests . remove ( request_id ) , } ; } ) ; }
Remove a request from the list of pending responses.
Remove a request from the list of pending responses .
&mut self
request_id
&RequestId
direction
&RequestDirection