[][src]Enum hpack::decoder::IntegerDecodingError

pub enum IntegerDecodingError {
    TooManyOctets,
    ValueTooLarge,
    NotEnoughOctets,
    InvalidPrefix,
}

Represents all errors that can be encountered while decoding an integer.

Variants

TooManyOctets

5.1. specifies that "excessively large integer decodings" MUST be considered an error (whether the size is the number of octets or value). This variant corresponds to the encoding containing too many octets.

ValueTooLarge

The variant corresponds to the case where the value of the integer being decoded exceeds a certain threshold.

NotEnoughOctets

When a buffer from which an integer was supposed to be encoded does not contain enough octets to complete the decoding.

InvalidPrefix

Only valid prefixes are [1, 8]

Trait Implementations

impl Clone for IntegerDecodingError[src]

impl Copy for IntegerDecodingError[src]

impl Debug for IntegerDecodingError[src]

impl PartialEq<IntegerDecodingError> for IntegerDecodingError[src]

impl StructuralPartialEq for IntegerDecodingError[src]

Auto Trait Implementations

impl RefUnwindSafe for IntegerDecodingError

impl Send for IntegerDecodingError

impl Sync for IntegerDecodingError

impl Unpin for IntegerDecodingError

impl UnwindSafe for IntegerDecodingError

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, 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.