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 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)
1.0.0
[src]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