Enum trust_dns_proto::serialize::binary::DecodeError
source · [−]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
InsufficientBytes
Insufficient data in the buffer for a read operation
InvalidPreviousIndex
slice_from was called with an invalid index
PointerNotPriorToLabel
Fields
idx: usize
index of the label containing this pointer
ptr: u16
location to which the pointer is directing
Pointer points to an index within or after the current label
LabelBytesTooLong(usize)
Label bytes exceeded the limit of 63
UnrecognizedLabelCode(u8)
An unrecognized label code was found
DomainNameTooLong(usize)
A domain name was too long
LabelOverlapsWithOther
Overlapping labels
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