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

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

Variants

DecodeError
EncodeError
IoError
NotAllBytesSent

Fields

loc
sent
expect
NotAllBytesReceived

Fields

loc
received
expect
IncorrectMessageId

Fields

loc
got
expect
TimedOut
NoAddress
NoNameServer
TimerError
NoDataReceived
ErrorResponse
NoRRSIG
NoDNSKEY
NoDS
NoSOARecord
SecNxDomain

Fields

loc
proof
InvalidNsec
InvalidNsec3
NoNsec

Trait Implementations

impl Debug for ClientError

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

impl Display for ClientError

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

impl Error for ClientError

fn description(&self) -> &str

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