Struct libp2p_request_response::ResponseChannel
source · pub struct ResponseChannel<TResponse> { /* private fields */ }
Expand description
A channel for sending a response to an inbound request.
Implementations§
source§impl<TResponse> ResponseChannel<TResponse>
impl<TResponse> ResponseChannel<TResponse>
sourcepub fn is_open(&self) -> bool
pub fn is_open(&self) -> bool
Checks whether the response channel is still open, i.e.
the RequestResponse
behaviour is still waiting for a
a response to be sent via RequestResponse::send_response
and this response channel.
If the response channel is no longer open then the inbound request timed out waiting for the response.