Enum rotor_dns::QueryError []

pub enum QueryError {
    TruncatedPacket,
    Net(Error),
}

Error when creating a query

Errors here are purely theoretical, should not happen in practice. It's okay to assert/unwrap on the errors, unless you pass user-generated data here.

Variants

TruncatedPacket

Your query is too long so it doesn't fit in 512 bytes. Should not happen in practice

Net(Error)

Trait Implementations

impl Debug for QueryError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for QueryError

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for QueryError

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

The lower-level cause of this error, if any. Read more

impl From<Error> for QueryError

fn from(err: Error) -> QueryError

Performs the conversion.