Enum trust_dns_proto::serialize::binary::DecodeError [−][src]
#[non_exhaustive]
pub enum DecodeError {
InsufficientBytes,
InvalidPreviousIndex,
PointerNotPriorToLabel {
idx: usize,
ptr: u16,
},
LabelBytesTooLong(usize),
UnrecognizedLabelCode(u8),
DomainNameTooLong(usize),
LabelOverlapsWithOther {
label: usize,
other: usize,
},
}
Expand description
An error that can occur deep in a decoder This type is kept very small so that function that use it inline often
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Insufficient data in the buffer for a read operation
slice_from was called with an invalid index
Pointer points to an index within or after the current label
Fields of PointerNotPriorToLabel
LabelBytesTooLong(usize)
Label bytes exceeded the limit of 63
Tuple Fields of LabelBytesTooLong
0: usize
UnrecognizedLabelCode(u8)
An unrecognized label code was found
Tuple Fields of UnrecognizedLabelCode
0: u8
DomainNameTooLong(usize)
A domain name was too long
Tuple Fields of DomainNameTooLong
0: usize
Overlapping labels
Fields of LabelOverlapsWithOther
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnwindSafe for DecodeError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more