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()
source§impl PartialEq<OutboundFailure> for OutboundFailure
impl PartialEq<OutboundFailure> for OutboundFailure
source§fn eq(&self, other: &OutboundFailure) -> bool
fn eq(&self, other: &OutboundFailure) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OutboundFailure
impl StructuralEq for OutboundFailure
impl StructuralPartialEq for OutboundFailure
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