Enum ResolveError
#[non_exhaustive]#[repr(u16)]pub enum ResolveError {
Show 14 variants
InvalidName = 1_281,
NameTooLong = 517,
UnsupportedQuery = 1_282,
UnsupportedFamily = 1_041,
NoAnswer = 1_283,
TemporaryFailure = 1_284,
Failure = 1_285,
OutOfMemory = 262,
NoQuerySlots = 270,
NoInterface = 769,
NetworkDown = 1_035,
NetworkUnreachable = 1_034,
TimedOut = 266,
SystemIo = 261,
}Expand description
A resolver failure with a stable Xila ID (equal to its Kind’s).
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.
InvalidName = 1_281
NameTooLong = 517
UnsupportedQuery = 1_282
UnsupportedFamily = 1_041
NoAnswer = 1_283
TemporaryFailure = 1_284
Failure = 1_285
OutOfMemory = 262
NoQuerySlots = 270
NoInterface = 769
NetworkDown = 1_035
NetworkUnreachable = 1_034
TimedOut = 266
SystemIo = 261
Implementations§
§impl ResolveError
impl ResolveError
pub const ALL: &'static [ResolveError]
pub const ALL: &'static [ResolveError]
All resolver errors, in declaration order.
pub const fn getaddrinfo(self) -> GetAddrInfoError
pub const fn getaddrinfo(self) -> GetAddrInfoError
Project to the getaddrinfo return domain.
Trait Implementations§
§impl Clone for ResolveError
impl Clone for ResolveError
§fn clone(&self) -> ResolveError
fn clone(&self) -> ResolveError
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 ResolveError
impl Debug for ResolveError
§impl Display for ResolveError
impl Display for ResolveError
§impl Error for ResolveError
impl Error for ResolveError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
§impl From<ResolveError> for Kind
impl From<ResolveError> for Kind
§fn from(error: ResolveError) -> Kind
fn from(error: ResolveError) -> Kind
Converts to this type from the input type.
§impl PartialEq for ResolveError
impl PartialEq for ResolveError
§impl TryFrom<u16> for ResolveError
impl TryFrom<u16> for ResolveError
impl Copy for ResolveError
impl Eq for ResolveError
impl StructuralPartialEq for ResolveError
Auto Trait Implementations§
impl Freeze for ResolveError
impl RefUnwindSafe for ResolveError
impl Send for ResolveError
impl Sync for ResolveError
impl Unpin for ResolveError
impl UnsafeUnpin for ResolveError
impl UnwindSafe for ResolveError
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