Enum trust_dns::error::ParseError [] [src]

pub enum ParseError {
    LexerError(LexerError),
    DecodeError(DecodeError),
    UnexpectedToken(Token),
    OriginIsUndefined,
    RecordTypeNotSpecified,
    RecordNameNotSpecified,
    RecordClassNotSpecified,
    RecordTTLNotSpecified,
    RecordDataNotSpecified,
    SoaAlreadySpecified,
    MissingToken(String),
    IoError(Error),
    ParseIntError(ParseIntError),
    AddrParseError(AddrParseError),
    CharToIntError(char),
    ParseTimeError(String),
}

Variants

LexerError(LexerError)DecodeError(DecodeError)UnexpectedToken(Token)OriginIsUndefinedRecordTypeNotSpecifiedRecordNameNotSpecifiedRecordClassNotSpecifiedRecordTTLNotSpecifiedRecordDataNotSpecifiedSoaAlreadySpecifiedMissingToken(String)IoError(Error)ParseIntError(ParseIntError)AddrParseError(AddrParseError)CharToIntError(char)ParseTimeError(String)

Trait Implementations

impl Debug for ParseError
[src]

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

Formats the value using the given formatter.

impl Display for ParseError
[src]

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

Formats the value using the given formatter.

impl Error for ParseError
[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<LexerError> for ParseError
[src]

fn from(err: LexerError) -> ParseError

Performs the conversion.

impl From<DecodeError> for ParseError
[src]

fn from(err: DecodeError) -> ParseError

Performs the conversion.

impl From<Error> for ParseError
[src]

fn from(err: Error) -> ParseError

Performs the conversion.

impl From<ParseIntError> for ParseError
[src]

fn from(err: ParseIntError) -> ParseError

Performs the conversion.

impl From<AddrParseError> for ParseError
[src]

fn from(err: AddrParseError) -> ParseError

Performs the conversion.