Enum trust_dns::error::ParseErrorKind
[−]
pub enum ParseErrorKind { Msg(String), Proto(ProtoErrorKind), Lexer(ErrorKind), DataEncoding, Io, ParseInt, AddrParse, Message(&'static str), UnexpectedToken(Token), MissingToken(String), CharToIntError(char), ParseTimeError(String), }
Variants
Msg(String)
Proto(ProtoErrorKind)
Lexer(ErrorKind)
DataEncoding
Io
ParseInt
AddrParse
Message(&'static str)
UnexpectedToken(Token)
MissingToken(String)
CharToIntError(char)
ParseTimeError(String)
Methods
impl ErrorKind
pub fn description(&self) -> &str
Trait Implementations
impl From<ErrorKind> for Error
impl Debug for ErrorKind
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ErrorKind
impl From<ProtoErrorKind> for ErrorKind
fn from(e: ProtoErrorKind) -> Self
Performs the conversion.