pub enum DnsError {
NxDomain,
ServFail,
Timeout,
Other(String),
}Expand description
A DNS resolution error.
Variants§
NxDomain
The name does not exist (NXDOMAIN).
ServFail
The server encountered an internal error (SERVFAIL).
Timeout
The resolver did not respond within the deadline.
Other(String)
Name syntactically invalid or resolver refused.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DnsError
impl<'de> Deserialize<'de> for DnsError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DnsError
impl StructuralPartialEq for DnsError
Auto Trait Implementations§
impl Freeze for DnsError
impl RefUnwindSafe for DnsError
impl Send for DnsError
impl Sync for DnsError
impl Unpin for DnsError
impl UnsafeUnpin for DnsError
impl UnwindSafe for DnsError
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