pub enum Failure {
NoSuchName,
NoRecord,
Timeout,
Refused(u8),
Truncated,
Network(String),
}Expand description
Why a query got no addresses.
Variants§
NoSuchName
The server says the name does not exist (NXDOMAIN).
NoRecord
The name exists, but has no record of this kind.
Timeout
The server did not answer in time.
Refused(u8)
The server answered with an error, like SERVFAIL or REFUSED.
Truncated
The answer was too long for UDP and cut off, so it is incomplete.
Network(String)
The query could not be sent, or the answer could not be read.
Trait Implementations§
impl Eq for Failure
impl StructuralPartialEq for Failure
Auto Trait Implementations§
impl Forget for Failure
impl Freeze for Failure
impl Move for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnsafeUnpin for Failure
impl UnwindSafe for Failure
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