#[non_exhaustive]pub enum NetworkFailureKind {
Dns,
ConnectionRefused,
Connect,
}Expand description
Evidence-backed detail for a request that failed while establishing a network connection.
This is an additive, opt-in classification. It deliberately does not
replace Error::kind and is only reported when the transport exposes
typed evidence for the category.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dns
Name resolution failed before a destination address was attempted.
ConnectionRefused
Every attempted destination failed with connection refusal.
Connect
A connection-establishment failure that is not more specifically classified.
Trait Implementations§
Source§impl Clone for NetworkFailureKind
impl Clone for NetworkFailureKind
impl Copy for NetworkFailureKind
Source§impl Debug for NetworkFailureKind
impl Debug for NetworkFailureKind
impl Eq for NetworkFailureKind
Source§impl Hash for NetworkFailureKind
impl Hash for NetworkFailureKind
Source§impl PartialEq for NetworkFailureKind
impl PartialEq for NetworkFailureKind
impl StructuralPartialEq for NetworkFailureKind
Auto Trait Implementations§
impl Freeze for NetworkFailureKind
impl RefUnwindSafe for NetworkFailureKind
impl Send for NetworkFailureKind
impl Sync for NetworkFailureKind
impl Unpin for NetworkFailureKind
impl UnsafeUnpin for NetworkFailureKind
impl UnwindSafe for NetworkFailureKind
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