#[non_exhaustive]pub enum AddressResolveErrorKind {
TemporaryFailure,
NameNotFound,
ServiceUnavailable,
InvalidHints,
PermanentFailure,
OutOfMemory,
System,
Other,
}Expand description
Portable classification of resolver failures. Native error codes remain available separately and are not errno values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TemporaryFailure
A temporary failure for which a later retry may succeed, such as EAI_AGAIN. Converts to io::ErrorKind::WouldBlock.
NameNotFound
The name is unknown or has no addresses, such as EAI_NONAME. Converts to io::ErrorKind::NotFound.
The service is not available for the requested socket type, such as EAI_SERVICE. Converts to io::ErrorKind::NotFound.
InvalidHints
The hints are invalid or unsupported, such as EAI_BADFLAGS, EAI_FAMILY, or EAI_SOCKTYPE. Converts to io::ErrorKind::InvalidInput.
PermanentFailure
A non-recoverable resolver failure, such as EAI_FAIL. Converts to io::ErrorKind::Other.
OutOfMemory
The resolver could not allocate memory. Converts to io::ErrorKind::OutOfMemory.
System
An underlying system failure, described by AddressResolveError::system_error. Converts to that error’s kind, or io::ErrorKind::Other when it is absent.
Other
A failure outside the other categories. Converts to io::ErrorKind::Other.