Enum trust_dns::error::ClientError [] [src]

pub enum ClientError {
    DecodeError(DecodeError),
    EncodeError(EncodeError),
    IoError(Error),
    NotAllBytesSent {
        sent: usize,
        expect: usize,
    },
    NotAllBytesReceived {
        received: usize,
        expect: usize,
    },
    IncorrectMessageId {
        got: u16,
        expect: u16,
    },
    TimedOut,
    NoAddress,
    NoNameServer,
    TimerError,
    NoDataReceived,
    ErrorResponse(ResponseCode),
    NoRRSIG,
    NoDNSKEY,
    NoDS,
    NoSOARecord(Name),
    SecNxDomain {
        proof: Vec<Record>,
    },
    InvalidNsec,
    InvalidNsec3,
    NoNsec,
}

Variants

DecodeError(DecodeError)EncodeError(EncodeError)IoError(Error)NotAllBytesSent

Fields

sent: usize
expect: usize
NotAllBytesReceived

Fields

received: usize
expect: usize
IncorrectMessageId

Fields

got: u16
expect: u16
TimedOutNoAddressNoNameServerTimerErrorNoDataReceivedErrorResponse(ResponseCode)NoRRSIGNoDNSKEYNoDSNoSOARecord(Name)SecNxDomain

Fields

proof: Vec<Record>
InvalidNsecInvalidNsec3NoNsec

Trait Implementations

impl Debug for ClientError
[src]

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

Formats the value using the given formatter.

impl Display for ClientError
[src]

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

Formats the value using the given formatter.

impl Error for ClientError
[src]

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<DecodeError> for ClientError
[src]

fn from(err: DecodeError) -> Self

Performs the conversion.

impl From<EncodeError> for ClientError
[src]

fn from(err: EncodeError) -> Self

Performs the conversion.

impl From<Error> for ClientError
[src]

fn from(err: Error) -> Self

Performs the conversion.