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 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