pub enum OutboundFailure {
DialFailure,
Timeout,
ConnectionClosed,
UnsupportedProtocols,
}
Expand description
Possible failures occurring in the context of sending an outbound request and receiving the response.
Variants§
DialFailure
The request could not be sent because a dialing attempt failed.
Timeout
The request timed out before a response was received.
It is not known whether the request may have been received (and processed) by the remote peer.
ConnectionClosed
The connection closed before a response was received.
It is not known whether the request may have been received (and processed) by the remote peer.
UnsupportedProtocols
The remote supports none of the requested protocols.
Trait Implementations§
source§impl Clone for OutboundFailure
impl Clone for OutboundFailure
source§fn clone(&self) -> OutboundFailure
fn clone(&self) -> OutboundFailure
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OutboundFailure
impl Debug for OutboundFailure
source§impl Display for OutboundFailure
impl Display for OutboundFailure
source§impl Error for OutboundFailure
impl Error for OutboundFailure
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()