pub enum ResolveErrorKind {
Message(&'static str),
Msg(String),
NoRecordsFound {
query: Query,
valid_until: Option<Instant>,
},
Io,
Proto,
Timeout,
}
Expand description
The error kind for errors that get returned in the crate
Variants
Message(&'static str)
An error with an arbitrary message, referenced as &’static str
Msg(String)
An error with an arbitrary message, stored as String
NoRecordsFound
Fields
query: Query
The query for which no records were found.
No records were found for a query
Io
An error got returned from IO
Proto
An error got returned by the trust-dns-proto crate
Timeout
A request timed out
Trait Implementations
sourceimpl Clone for ResolveErrorKind
impl Clone for ResolveErrorKind
sourceimpl Debug for ResolveErrorKind
impl Debug for ResolveErrorKind
sourceimpl Display for ResolveErrorKind
impl Display for ResolveErrorKind
sourceimpl Fail for ResolveErrorKind
impl Fail for ResolveErrorKind
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<ResolveErrorKind> for ResolveError
impl From<ResolveErrorKind> for ResolveError
sourcefn from(kind: ResolveErrorKind) -> ResolveError
fn from(kind: ResolveErrorKind) -> ResolveError
Converts to this type from the input type.
sourceimpl PartialEq<ResolveErrorKind> for ResolveErrorKind
impl PartialEq<ResolveErrorKind> for ResolveErrorKind
sourcefn eq(&self, other: &ResolveErrorKind) -> bool
fn eq(&self, other: &ResolveErrorKind) -> bool
impl Eq for ResolveErrorKind
impl StructuralEq for ResolveErrorKind
impl StructuralPartialEq for ResolveErrorKind
Auto Trait Implementations
impl RefUnwindSafe for ResolveErrorKind
impl Send for ResolveErrorKind
impl Sync for ResolveErrorKind
impl Unpin for ResolveErrorKind
impl UnwindSafe for ResolveErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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