Enum resolve::message::DecodeError [] [src]

pub enum DecodeError {
    ExtraneousData,
    ShortMessage,
    InvalidMessage,
    InvalidName,
}

Represents an error in decoding a DNS message.

Variants

ExtraneousData

Extraneous data encountered at the end of message

ShortMessage

Message end was encountered before expected

InvalidMessage

Unable to decode invalid data

InvalidName

An invalid name was encountered

Trait Implementations

impl PartialEq for DecodeError
[src]

fn eq(&self, __arg_0: &DecodeError) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Eq for DecodeError
[src]

impl Debug for DecodeError
[src]

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

Formats the value using the given formatter.

impl Clone for DecodeError
[src]

fn clone(&self) -> DecodeError

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for DecodeError
[src]

impl Display for DecodeError
[src]

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

Formats the value using the given formatter.