Enum e_utils::dns::LookupErrorKind
source · [−]pub enum LookupErrorKind {
Again,
Badflags,
NoName,
NoData,
Fail,
Family,
Socktype,
Service,
Memory,
System,
Unknown,
IO,
}dns only.Expand description
Different kinds of lookup errors that getaddrinfo and
getnameinfo can return. These can be a little inconsitant
between platforms, so it’s recommended not to rely on them.
Variants
Again
Temporary failure in name resolution.
May also be returend when DNS server returns a SERVFAIL.
Badflags
Invalid value for `ai_flags’ field.
NoName
NAME or SERVICE is unknown.
May also be returned when domain doesn’t exist (NXDOMAIN) or domain exists but contains no address records (NODATA).
NoData
The specified network host exists, but has no data defined.
This is no longer a POSIX standard, however it’s still returned by
some platforms. Be warned that FreeBSD does not include the corresponding
EAI_NODATA symbol.
Fail
Non-recoverable failure in name resolution.
Family
`ai_family’ not supported.
Socktype
`ai_socktype’ not supported.
Service
SERVICE not supported for `ai_socktype’.
Memory
Memory allocation failure.
System
System error returned in `errno’.
Unknown
An unknown result code was returned.
For some platforms, you may wish to match on an unknown value directly.
Note that gai_strerr is used to get error messages, so the generated IO
error should contain the correct error message for the platform.
IO
A generic C error or IO error occured.
You should convert this LookupError into an IO error directly. Note
that the error code is set to 0 in the case this is returned.
Implementations
Trait Implementations
sourceimpl Clone for LookupErrorKind
impl Clone for LookupErrorKind
sourcefn clone(&self) -> LookupErrorKind
fn clone(&self) -> LookupErrorKind
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
sourceimpl Debug for LookupErrorKind
impl Debug for LookupErrorKind
impl Copy for LookupErrorKind
Auto Trait Implementations
impl RefUnwindSafe for LookupErrorKind
impl Send for LookupErrorKind
impl Sync for LookupErrorKind
impl Unpin for LookupErrorKind
impl UnwindSafe for LookupErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
