Enum GetAddrInfoError
#[non_exhaustive]pub enum GetAddrInfoError {
EAI_NONAME,
EAI_FAIL,
EAI_FAMILY,
EAI_AGAIN,
EAI_MEMORY,
EAI_SYSTEM,
}Expand description
Symbolic getaddrinfo failure codes (EAI_*). Numeric values belong to
the target libc.
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.
EAI_NONAME
EAI_NONAME
EAI_FAIL
EAI_FAIL
EAI_FAMILY
EAI_FAMILY
EAI_AGAIN
EAI_AGAIN
EAI_MEMORY
EAI_MEMORY
EAI_SYSTEM
EAI_SYSTEM: the cause is the errno of ResolveError::kind.
Trait Implementations§
§impl Clone for GetAddrInfoError
impl Clone for GetAddrInfoError
§fn clone(&self) -> GetAddrInfoError
fn clone(&self) -> GetAddrInfoError
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 more§impl Debug for GetAddrInfoError
impl Debug for GetAddrInfoError
§impl PartialEq for GetAddrInfoError
impl PartialEq for GetAddrInfoError
§fn eq(&self, other: &GetAddrInfoError) -> bool
fn eq(&self, other: &GetAddrInfoError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GetAddrInfoError
impl Eq for GetAddrInfoError
impl StructuralPartialEq for GetAddrInfoError
Auto Trait Implementations§
impl Freeze for GetAddrInfoError
impl RefUnwindSafe for GetAddrInfoError
impl Send for GetAddrInfoError
impl Sync for GetAddrInfoError
impl Unpin for GetAddrInfoError
impl UnsafeUnpin for GetAddrInfoError
impl UnwindSafe for GetAddrInfoError
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