Enum trust_dns::error::ParseErrorKind []

pub enum ParseErrorKind {
    Msg(String),
    Decode(ErrorKind),
    Lexer(ErrorKind),
    Io,
    ParseInt,
    AddrParse,
    Message(&'static str),
    UnexpectedToken(Token),
    MissingToken(String),
    CharToIntError(char),
    ParseTimeError(String),
}

Variants

Msg(String)Decode(ErrorKind)Lexer(ErrorKind)IoParseIntAddrParseMessage(&'static str)UnexpectedToken(Token)MissingToken(String)CharToIntError(char)ParseTimeError(String)

Methods

impl ErrorKind

fn description(&self) -> &str

Trait Implementations

impl Debug for ErrorKind

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

Formats the value using the given formatter.

impl Display for ErrorKind

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

Formats the value using the given formatter.

impl From<ErrorKind> for ErrorKind

fn from(e: ErrorKind) -> Self

Performs the conversion.

impl From<ErrorKind> for ErrorKind

fn from(e: ErrorKind) -> Self

Performs the conversion.

impl<'a> From<&'a str> for ErrorKind

fn from(s: &'a str) -> Self

Performs the conversion.

impl From<String> for ErrorKind

fn from(s: String) -> Self

Performs the conversion.