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

An error with an arbitrary message, referenced as &'static str

An error with an arbitrary message, stored as String

No records were found for a query

Fields of NoRecordsFound

The query for which no records were found.

A deadline after which the the NXDOMAIN response is no longer valid, and the nameserver should be queried again.

An error got returned from IO

An error got returned by the trust-dns-proto crate

A request timed out

Trait Implementations

impl Eq for ResolveErrorKind
[src]

impl PartialEq for ResolveErrorKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for ResolveErrorKind
[src]

Formats the value using the given formatter. Read more

impl Fail for ResolveErrorKind
[src]

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more

Provides context for this failure. Read more

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more

Important traits for Causes<'f>

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

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]

Formats the value using the given formatter. Read more

impl Clone for ResolveErrorKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<ResolveErrorKind> for ResolveError
[src]

Performs the conversion.

Auto Trait Implementations