Skip to main content

HpackDecodeError

Enum HpackDecodeError 

Source
pub enum HpackDecodeError {
Show 15 variants Representation(HpackRepresentationParseError), IndexNotRepresentable { index: u64, }, UnavailableIndex { index: u64, }, MaximumSizeNotRepresentable { maximum_size: u64, }, AllowedMaximumExceedsCapacity { allowed: usize, capacity: usize, }, DynamicTableSizeUpdateRequired, DynamicTableSizeUpdateMismatch { expected: usize, requested: usize, }, DynamicTableSizeUpdateAfterField, DynamicTableSizeUpdateExceedsAllowed { requested: usize, allowed: usize, }, DynamicTableSizeUpdate(HpackDynamicTableError), HuffmanName(HpackHuffmanDecodeError), HuffmanValue(HpackHuffmanDecodeError), DecodedLengthOverflow, EntrySizeOverflow, OutputTooShort { required: usize, available: usize, },
}
Expand description

Failure to construct or advance an HPACK block decoder.

Variants§

§

Representation(HpackRepresentationParseError)

A representation could not be parsed.

§

IndexNotRepresentable

A combined static/dynamic table index cannot be represented as usize.

Fields

§index: u64

The wire index.

§

UnavailableIndex

A combined static/dynamic table index is unavailable.

Fields

§index: u64

The wire index.

§

MaximumSizeNotRepresentable

A dynamic-table update cannot be represented as usize.

Fields

§maximum_size: u64

The wire maximum size.

§

AllowedMaximumExceedsCapacity

The configured allowed maximum exceeds the table’s physical capacity.

Fields

§allowed: usize

The requested policy maximum.

§capacity: usize

The physical table capacity.

§

DynamicTableSizeUpdateRequired

A required leading dynamic-table size update has not been received.

§

DynamicTableSizeUpdateMismatch

A leading dynamic-table update did not match the exact pending value.

Fields

§expected: usize

The exact next required maximum.

§requested: usize

The wire-requested maximum.

§

DynamicTableSizeUpdateAfterField

A dynamic-table update appeared after a header field.

§

DynamicTableSizeUpdateExceedsAllowed

A dynamic-table update exceeds the decoder’s configured allowed maximum.

Fields

§requested: usize

The wire-requested maximum.

§allowed: usize

The decoder policy maximum.

§

DynamicTableSizeUpdate(HpackDynamicTableError)

Applying a dynamic-table update failed.

§

HuffmanName(HpackHuffmanDecodeError)

Decoding a literal name’s Huffman bytes failed.

§

HuffmanValue(HpackHuffmanDecodeError)

Decoding a literal value’s Huffman bytes failed.

§

DecodedLengthOverflow

Name and value lengths cannot be added as usize.

§

EntrySizeOverflow

The RFC dynamic-table entry-size calculation overflowed usize.

§

OutputTooShort

The caller output cannot contain the complete decoded field.

Fields

§required: usize

Bytes required for the complete field.

§available: usize

Bytes supplied by the caller.

Trait Implementations§

Source§

impl Clone for HpackDecodeError

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for HpackDecodeError

Source§

impl Debug for HpackDecodeError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for HpackDecodeError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for HpackDecodeError

Source§

impl PartialEq for HpackDecodeError

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for HpackDecodeError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.