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]
impl Display for QueryError
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.