pub enum AdapterFailure {
Unreachable,
Timeout,
Unsupported,
AuthenticationFailed,
Cancelled,
}Expand description
Failure classification supplied by a platform adapter.
Variants§
Unreachable
Destination could not be reached.
Timeout
The finite request deadline expired.
Unsupported
The runtime does not implement the selected path.
AuthenticationFailed
Brontide or endpoint authentication failed.
Cancelled
Platform lifecycle cancelled the request.
Trait Implementations§
Source§impl Clone for AdapterFailure
impl Clone for AdapterFailure
Source§fn clone(&self) -> AdapterFailure
fn clone(&self) -> AdapterFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AdapterFailure
Source§impl Debug for AdapterFailure
impl Debug for AdapterFailure
Source§impl Display for AdapterFailure
impl Display for AdapterFailure
impl Eq for AdapterFailure
Source§impl Error for AdapterFailure
impl Error for AdapterFailure
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<AdapterFailure> for P2pTransportError
impl From<AdapterFailure> for P2pTransportError
Source§fn from(source: AdapterFailure) -> P2pTransportError
fn from(source: AdapterFailure) -> P2pTransportError
Converts to this type from the input type.
Source§impl PartialEq for AdapterFailure
impl PartialEq for AdapterFailure
impl StructuralPartialEq for AdapterFailure
Auto Trait Implementations§
impl Freeze for AdapterFailure
impl RefUnwindSafe for AdapterFailure
impl Send for AdapterFailure
impl Sync for AdapterFailure
impl Unpin for AdapterFailure
impl UnsafeUnpin for AdapterFailure
impl UnwindSafe for AdapterFailure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.