Enum trust_dns_proto::error::ProtoErrorKind [−][src]
pub enum ProtoErrorKind {}Show variants
Busy, Canceled(Canceled), CharacterDataTooLong { max: usize, len: usize, }, LabelOverlapsWithOther { label: usize, other: usize, }, DnsKeyProtocolNot3(u8), DomainNameTooLong(usize), EdnsNameNotRoot(Name), IncorrectRDataLengthRead { read: usize, len: usize, }, LabelBytesTooLong(usize), PointerNotPriorToLabel { idx: usize, ptr: u16, }, MaxBufferSizeExceeded(usize), Message(&'static str), Msg(String), NoError, NotAllRecordsWritten { count: usize, }, RrsigsNotPresent { name: Name, record_type: RecordType, }, UnknownAlgorithmTypeValue(u8), UnknownDnsClassStr(String), UnknownDnsClassValue(u16), UnknownRecordTypeStr(String), UnknownRecordTypeValue(u16), UnrecognizedLabelCode(u8), UnrecognizedNsec3Flags(u8), Io(Error), Poisoned, Ring(Unspecified), SSL(SslErrorStack), Timer, Timeout, UrlParsing(ParseError), Utf8(Utf8Error), FromUtf8(FromUtf8Error), ParseInt(ParseIntError),
Expand description
The error kind for errors that get returned in the crate
Variants
Expand description
The underlying resource is too busy
This is a signal that an internal resource is too busy. The intended action should be tried again, ideally after waiting for a little while for the situation to improve. Alternatively, the action could be tried on another resource (for example, in a name server pool).
Canceled(Canceled)
Expand description
An error caused by a canceled future
Expand description
Character data length exceeded the limit
Show fields
Expand description
Overlapping labels
Show fields
DnsKeyProtocolNot3(u8)
Expand description
DNS protocol version doesn’t have the expected version 3
DomainNameTooLong(usize)
Expand description
A domain name was too long
EdnsNameNotRoot(Name)
Expand description
EDNS resource record label is not the root label, although required
Expand description
The length of rdata read was not as expected
Show fields
LabelBytesTooLong(usize)
Expand description
Label bytes exceeded the limit of 63
Expand description
Label bytes exceeded the limit of 63
Show fields
MaxBufferSizeExceeded(usize)
Expand description
The maximum buffer size was exceeded
Message(&'static str)
Expand description
An error with an arbitrary message, referenced as &’static str
Msg(String)
Expand description
An error with an arbitrary message, stored as String
Expand description
No error was specified
Expand description
Not all records were able to be written
Show fields
Fields of NotAllRecordsWritten
count: usize
Expand description
Number of records that were written before the error
Expand description
Missing rrsigs
Show fields
Fields of RrsigsNotPresent
name: Name
Expand description
The record set name
record_type: RecordType
Expand description
The record type
UnknownAlgorithmTypeValue(u8)
Expand description
An unknown algorithm type was found
UnknownDnsClassStr(String)
Expand description
An unknown dns class was found
UnknownDnsClassValue(u16)
Expand description
An unknown dns class value was found
UnknownRecordTypeStr(String)
Expand description
An unknown record type string was found
UnknownRecordTypeValue(u16)
Expand description
An unknown record type value was found
UnrecognizedLabelCode(u8)
Expand description
An unrecognized label code was found
UnrecognizedNsec3Flags(u8)
Expand description
Unrecognized nsec3 flags were found
Io(Error)
Expand description
An error got returned from IO
Expand description
Any sync poised error
Ring(Unspecified)
Expand description
A ring error
SSL(SslErrorStack)
Expand description
An ssl error
Expand description
A tokio timer error
Expand description
A request timed out
UrlParsing(ParseError)
Expand description
An url parsing error
Utf8(Utf8Error)
Expand description
A utf8 parsing error
FromUtf8(FromUtf8Error)
Expand description
A utf8 parsing error
ParseInt(ParseIntError)
Expand description
An int parsing error
Trait Implementations
impl Clone for ProtoErrorKind
[src]
impl Clone for ProtoErrorKind
[src]impl Debug for ProtoErrorKind
[src]
impl Debug for ProtoErrorKind
[src]impl Display for ProtoErrorKind
[src]
impl Display for ProtoErrorKind
[src]impl Error for ProtoErrorKind
[src]
impl Error for ProtoErrorKind
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<FromUtf8Error> for ProtoErrorKind
[src]
impl From<FromUtf8Error> for ProtoErrorKind
[src]fn from(source: FromUtf8Error) -> Self
[src]
fn from(source: FromUtf8Error) -> Self
[src]Performs the conversion.
impl From<ParseError> for ProtoErrorKind
[src]
impl From<ParseError> for ProtoErrorKind
[src]fn from(source: ParseError) -> Self
[src]
fn from(source: ParseError) -> Self
[src]Performs the conversion.
impl From<ParseIntError> for ProtoErrorKind
[src]
impl From<ParseIntError> for ProtoErrorKind
[src]fn from(source: ParseIntError) -> Self
[src]
fn from(source: ParseIntError) -> Self
[src]Performs the conversion.
impl From<ProtoErrorKind> for ProtoError
[src]
impl From<ProtoErrorKind> for ProtoError
[src]fn from(kind: ProtoErrorKind) -> ProtoError
[src]
fn from(kind: ProtoErrorKind) -> ProtoError
[src]Performs the conversion.
impl From<SslErrorStack> for ProtoErrorKind
[src]
impl From<SslErrorStack> for ProtoErrorKind
[src]fn from(source: SslErrorStack) -> Self
[src]
fn from(source: SslErrorStack) -> Self
[src]Performs the conversion.
impl From<Unspecified> for ProtoErrorKind
[src]
impl From<Unspecified> for ProtoErrorKind
[src]fn from(source: Unspecified) -> Self
[src]
fn from(source: Unspecified) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ProtoErrorKind
impl Send for ProtoErrorKind
impl Sync for ProtoErrorKind
impl Unpin for ProtoErrorKind
impl !UnwindSafe for ProtoErrorKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,