Enum domain::resolv::error::Error
[−]
[src]
pub enum Error { Question(ComposeError), Timeout, NoName, NoSecureAnswers, AllBogusAnswers, Io(Error), }
An error happened during a query.
Variants
Question(ComposeError)
The question was broken.
Timeout
All queries timed out.
NoName
All responses for a query were negative.
NoSecureAnswers
At least one response was received but none was secure.
AllBogusAnswers
At least one response was received but all were bogus.
Io(Error)
An IO error stopped queries from succeeding at all.
Methods
impl Error
[src]
pub fn merge(self, other: Self) -> Self
[src]
Finds the most appropriate error for two failed queries.
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more
impl From<Rcode> for Error
[src]
impl From<ComposeError> for Error
[src]
fn from(error: ComposeError) -> Error
[src]
Performs the conversion.
impl From<Error> for Error
[src]
impl From<ParseError> for Error
[src]
fn from(error: ParseError) -> Error
[src]
Performs the conversion.