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]
impl Error
pub fn merge(self, other: Self) -> Self
[src]
pub fn merge(self, other: Self) -> Self
Finds the most appropriate error for two failed queries.
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
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 Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
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<Rcode> for Error
impl From<ComposeError> for Error
[src]
impl From<ComposeError> for Error
fn from(error: ComposeError) -> Error
[src]
fn from(error: ComposeError) -> Error
Performs the conversion.
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<ParseError> for Error
[src]
impl From<ParseError> for Error
fn from(error: ParseError) -> Error
[src]
fn from(error: ParseError) -> Error
Performs the conversion.
impl From<Error> for Error
[src]
impl From<Error> for Error
impl Display for Error
[src]
impl Display for Error