Enum libp2p_request_response::InboundFailure [−][src]
pub enum InboundFailure {
Timeout,
ConnectionClosed,
UnsupportedProtocols,
ResponseOmission,
}
Expand description
Possible failures occurring in the context of receiving an inbound request and sending a response.
Variants
The inbound request timed out, either while reading the
incoming request or before a response is sent, e.g. if
RequestResponse::send_response
is not called in a
timely manner.
The connection closed before a response could be send.
The local peer supports none of the protocols requested by the remote.
The local peer failed to respond to an inbound request
due to the ResponseChannel
being dropped instead of
being passed to RequestResponse::send_response
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InboundFailure
impl Send for InboundFailure
impl Sync for InboundFailure
impl Unpin for InboundFailure
impl UnwindSafe for InboundFailure
Blanket Implementations
Mutably borrows from an owned value. Read more