Enum libp2p_autonat::OutboundFailure
source · pub enum OutboundFailure {
DialFailure,
Timeout,
ConnectionClosed,
UnsupportedProtocols,
Io(Error),
}
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.
Io(Error)
An IO failure happened on an outbound stream.
Trait Implementations§
source§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()
Auto Trait Implementations§
impl !RefUnwindSafe for OutboundFailure
impl Send for OutboundFailure
impl Sync for OutboundFailure
impl Unpin for OutboundFailure
impl !UnwindSafe for OutboundFailure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more