Struct libp2p::request_response::ResponseChannel [−][src]
pub struct ResponseChannel<TResponse> { /* fields omitted */ }
Expand description
A channel for sending a response to an inbound request.
Implementations
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.
Trait Implementations
Auto Trait Implementations
impl<TResponse> !RefUnwindSafe for ResponseChannel<TResponse>
impl<TResponse> Send for ResponseChannel<TResponse> where
TResponse: Send,
impl<TResponse> Sync for ResponseChannel<TResponse> where
TResponse: Send,
impl<TResponse> Unpin for ResponseChannel<TResponse>
impl<TResponse> !UnwindSafe for ResponseChannel<TResponse>