Skip to main content

HpackEncodeError

Enum HpackEncodeError 

Source
pub enum HpackEncodeError {
Show 16 variants AllowedMaximumExceedsCapacity { allowed: usize, capacity: usize, }, DynamicTableSizeUpdateRequired, DynamicTableSizeUpdateMismatch { expected: usize, requested: usize, }, DynamicTableSizeUpdateAfterField, DynamicTableSizeUpdateExceedsAllowed { requested: usize, allowed: usize, }, IndexNotRepresentable { index: u64, }, UnavailableIndex { index: usize, }, IndexedLiteralNameMismatch { index: u64, }, HuffmanNameForIndexedName, HuffmanName(HpackHuffmanEncodeError), HuffmanValue(HpackHuffmanEncodeError), StringLengthNotRepresentable { length: usize, }, RepresentationLengthOverflow, DynamicTableEntrySize(HpackDynamicTableError), MaximumSizeNotRepresentable { maximum_size: usize, }, Representation(HpackRepresentationBuildError),
}
Expand description

Failure to construct or advance an HPACK block encoder.

Variants§

§

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

§

DynamicTableSizeUpdateMismatch

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

Fields

§expected: usize

The exact next required maximum.

§requested: usize

The requested maximum.

§

DynamicTableSizeUpdateAfterField

A dynamic-table update was requested after a header field.

§

DynamicTableSizeUpdateExceedsAllowed

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

Fields

§requested: usize

The requested maximum.

§allowed: usize

The encoder policy maximum.

§

IndexNotRepresentable

A combined static/dynamic table index cannot be represented on the wire.

Fields

§index: u64

The requested index.

§

UnavailableIndex

A combined static/dynamic table index is unavailable.

Fields

§index: usize

The requested index.

§

IndexedLiteralNameMismatch

An indexed literal name did not match the supplied decoded name.

Fields

§index: u64

The combined static/dynamic table index.

§

HuffmanNameForIndexedName

Huffman name encoding was requested for an indexed name with no emitted name bytes.

§

HuffmanName(HpackHuffmanEncodeError)

Huffman encoding a literal name failed during preflight.

§

HuffmanValue(HpackHuffmanEncodeError)

Huffman encoding a literal value failed during preflight.

§

StringLengthNotRepresentable

An encoded string length cannot be represented by the HPACK integer format.

Fields

§length: usize

The encoded string length.

§

RepresentationLengthOverflow

The exact HPACK literal representation length overflows usize.

§

DynamicTableEntrySize(HpackDynamicTableError)

Calculating an incremental-indexing entry size failed before output was written.

§

MaximumSizeNotRepresentable

A dynamic-table maximum cannot be represented on the wire.

Fields

§maximum_size: usize

The requested maximum.

§

Representation(HpackRepresentationBuildError)

A representation could not be built in the supplied destination.

Trait Implementations§

Source§

impl Clone for HpackEncodeError

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 HpackEncodeError

Source§

impl Debug for HpackEncodeError

Source§

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

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

impl Display for HpackEncodeError

Source§

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

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

impl Eq for HpackEncodeError

Source§

impl PartialEq for HpackEncodeError

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 HpackEncodeError

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.