Enum trust_dns::error::ParseErrorKind [−][src]
pub enum ParseErrorKind { CharToInt(char), Message(&'static str), MissingToken(String), Msg(String), ParseTime(String), UnexpectedToken(Token), AddrParse, DataEncoding, Io, Lexer, ParseInt, Proto, Timeout, }
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
An address parse error
DataEncoding
A data encoding error
Io
An error got returned from IO
Lexer
An error from the lexer
ParseInt
A number parsing error
Proto
An error got returned by the trust-dns-proto crate
Timeout
A request timed out
Trait Implementations
impl Eq for ErrorKind
[src]
impl Eq for ErrorKind
impl PartialEq for ErrorKind
[src]
impl PartialEq for ErrorKind
fn eq(&self, other: &ErrorKind) -> bool
[src]
fn eq(&self, other: &ErrorKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ErrorKind) -> bool
[src]
fn ne(&self, other: &ErrorKind) -> bool
This method tests for !=
.
impl Debug for ErrorKind
[src]
impl Debug for ErrorKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ErrorKind
[src]
impl Clone for ErrorKind
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl From<ErrorKind> for Error
[src]
impl From<ErrorKind> for Error
Auto Trait Implementations
impl Send for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Sync for ParseErrorKind