pub enum FailureCategory {
Show 15 variants
Protocol,
Authentication,
HandshakeTimeout,
Dns,
ConnectionRefused,
NetworkUnreachable,
HostUnreachable,
RouteTimeout,
RouteHop,
UpstreamAuthentication,
PolicyDenied,
UpstreamUnavailable,
Relay,
Cancelled,
Internal,
}Expand description
Specific failure category for structured diagnostics and metrics.
Variants§
Protocol
Authentication
HandshakeTimeout
Dns
ConnectionRefused
NetworkUnreachable
HostUnreachable
RouteTimeout
RouteHop
UpstreamAuthentication
PolicyDenied
Relay
Cancelled
Internal
Implementations§
Source§impl FailureCategory
impl FailureCategory
pub fn from_io_error(error: &Error) -> Self
Trait Implementations§
Source§impl Clone for FailureCategory
impl Clone for FailureCategory
Source§fn clone(&self) -> FailureCategory
fn clone(&self) -> FailureCategory
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 FailureCategory
Source§impl Debug for FailureCategory
impl Debug for FailureCategory
impl Eq for FailureCategory
Source§impl From<&SessionOpenError> for FailureCategory
impl From<&SessionOpenError> for FailureCategory
Source§fn from(error: &SessionOpenError) -> Self
fn from(error: &SessionOpenError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FailureCategory
impl PartialEq for FailureCategory
impl StructuralPartialEq for FailureCategory
Auto Trait Implementations§
impl Freeze for FailureCategory
impl RefUnwindSafe for FailureCategory
impl Send for FailureCategory
impl Sync for FailureCategory
impl Unpin for FailureCategory
impl UnsafeUnpin for FailureCategory
impl UnwindSafe for FailureCategory
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.