[][src]Enum httlib_hpack::decoder::DecoderError

pub enum DecoderError {
    InvalidInput,
    InvalidIndex,
    InvalidPrefix,
    IntegerOverflow,
    IntegerUnderflow,
    InvalidMaxDynamicSize,
}

Contains error options that can be encountered while performing the decoding of an HPACK header set.

Variants

InvalidInput

Indicates that the decoder received an invalid (Huffman) buffer. This should never happen if the input is encoded according to the HPACK spec.

InvalidIndex

Indicates that an invalid index was provided. According to the HPACK specification, the index 0 must be treated as an invalid index number. The first valid number is 1.

InvalidPrefix

Indicates that an invalid prefix was provided (must be [1, 8]).

IntegerOverflow

Indicates that the value of the integer being decoded exceeds a certain threshold (5 bytes are chosen by this implementation).

IntegerUnderflow

Indicates that the buffer from which an integer was supposed to be decode does not contain enough octets to complete the decoding.

InvalidMaxDynamicSize

Indicates that the decoder received a size that do not follow external protocol rules.

Trait Implementations

impl Debug for DecoderError[src]

impl Display for DecoderError[src]

impl Error for DecoderError[src]

impl From<DecoderError> for DecoderError[src]

impl PartialEq<DecoderError> for DecoderError[src]

impl StructuralPartialEq for DecoderError[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> 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.