Enum trust_dns_proto::serialize::binary::DecodeError[][src]

pub enum DecodeError {
    InsufficientBytes,
    InvalidPreviousIndex,
    PointerNotPriorToLabel {
        idx: usize,
        ptr: u16,
    },
    LabelBytesTooLong(usize),
    UnrecognizedLabelCode(u8),
    DomainNameTooLong(usize),
    LabelOverlapsWithOther {
        label: usize,
        other: usize,
    },
}

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

Pointer points to an index within or after the current label

Fields of PointerNotPriorToLabel

idx: usize

index of the label containing this pointer

ptr: u16

location to which the pointer is directing

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

Fields of LabelOverlapsWithOther

label: usize

Start of the label that is overlaps

other: usize

Start of the other label

Trait Implementations

impl Clone for DecodeError[src]

impl Copy for DecodeError[src]

impl Debug for DecodeError[src]

impl Display for DecodeError[src]

impl Error for DecodeError[src]

impl From<DecodeError> for ProtoError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,