Enum trust_dns_client::error::ParseErrorKind
source · [−]pub enum ParseErrorKind {
Show 13 variants
CharToInt(char),
Message(&'static str),
MissingToken(String),
Msg(String),
ParseTime(String),
UnexpectedToken(Token),
AddrParse(AddrParseError),
DataEncoding(DecodeError),
Io(Error),
Lexer(LexerError),
ParseInt(ParseIntError),
Proto(ProtoError),
Timeout,
}
Expand description
The error kind for parse errors that get returned in the crate
Variants
CharToInt(char)
An invalid numerical character was found
Message(&'static str)
An error with an arbitrary message, referenced as &’static str
MissingToken(String)
A token is missing
Msg(String)
An error with an arbitrary message, stored as String
ParseTime(String)
A time string could not be parsed
UnexpectedToken(Token)
Found an unexpected token in a stream
AddrParse(AddrParseError)
An address parse error
DataEncoding(DecodeError)
A data encoding error
Io(Error)
An error got returned from IO
Lexer(LexerError)
An error from the lexer
ParseInt(ParseIntError)
A number parsing error
Proto(ProtoError)
An error got returned by the trust-dns-proto crate
Timeout
A request timed out
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more