Enum libp2p::request_response::OutboundFailure
source · [−]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
sourceimpl Clone for OutboundFailure
impl Clone for OutboundFailure
sourcepub fn clone(&self) -> OutboundFailure
pub fn clone(&self) -> OutboundFailure
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more