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

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

Trait Implementations

impl Debug for QueryError
[src]

Formats the value using the given formatter.

impl Display for QueryError

Formats the value using the given formatter. Read more

impl Error for QueryError

A short description of the error. Read more

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

impl From<Error> for QueryError

Performs the conversion.