Enum trust_dns_resolver::error::ResolveErrorKind [−][src]
pub enum ResolveErrorKind { Message(&'static str), Msg(String), NoRecordsFound { query: Query, valid_until: Option<Instant>, }, Io, Proto, Timeout, }
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
No records were found for a query
Fields of NoRecordsFound
query: Query | The query for which no records were found. |
valid_until: Option<Instant> | A deadline after which the the |
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
impl Eq for ResolveErrorKind
[src]
impl Eq for ResolveErrorKind
impl PartialEq for ResolveErrorKind
[src]
impl PartialEq for ResolveErrorKind
fn eq(&self, other: &ResolveErrorKind) -> bool
[src]
fn eq(&self, other: &ResolveErrorKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ResolveErrorKind) -> bool
[src]
fn ne(&self, other: &ResolveErrorKind) -> bool
This method tests for !=
.
impl Debug for ResolveErrorKind
[src]
impl Debug for ResolveErrorKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Fail for ResolveErrorKind
[src]
impl Fail for ResolveErrorKind
fn cause(&self) -> Option<&Fail>
[src]
fn cause(&self) -> Option<&Fail>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
fn compat(self) -> Compat<Self>
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
ⓘImportant traits for Causes<'f>fn causes(&self) -> Causes
[src]
fn causes(&self) -> Causes
Returns a iterator over the causes of this Fail
with itself as the first item and the root_cause
as the final item. Read more
fn root_cause(&self) -> &(Fail + 'static)
[src]
fn root_cause(&self) -> &(Fail + 'static)
Returns the "root cause" of this Fail
- the last value in the cause chain which does not return an underlying cause
. Read more
impl Display for ResolveErrorKind
[src]
impl Display for ResolveErrorKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ResolveErrorKind
[src]
impl Clone for ResolveErrorKind
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl From<ResolveErrorKind> for ResolveError
[src]
impl From<ResolveErrorKind> for ResolveError
fn from(kind: ResolveErrorKind) -> ResolveError
[src]
fn from(kind: ResolveErrorKind) -> ResolveError
Performs the conversion.
Auto Trait Implementations
impl Send for ResolveErrorKind
impl Send for ResolveErrorKind
impl Sync for ResolveErrorKind
impl Sync for ResolveErrorKind