[][src]Enum httlib_hpack::EncoderError

pub enum EncoderError {
    InvalidInput,
    InvalidIndex,
    InvalidPrefix,
    IntegerOverflow,
}

Represents all errors that can be encountered while performing the encoding of an HPACK header set.

Variants

InvalidInput

Indicates that the encoder received an invalid ASCII character and is thus unable to perform the (Huffman) encoding. Note that only ASCII characters provided in the HPACK spec should be used.

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 encoded exceeds a certain threshold (5 bytes are chosen by this implementation). This can also happen while encoding too long string.

Trait Implementations

impl Debug for EncoderError[src]

impl Display for EncoderError[src]

impl Error for EncoderError[src]

impl From<EncoderError> for EncoderError[src]

impl PartialEq<EncoderError> for EncoderError[src]

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