Skip to main content

QpackFieldSectionContextError

Enum QpackFieldSectionContextError 

Source
pub enum QpackFieldSectionContextError {
    FullRangeOverflow {
        maximum_table_capacity: u64,
        max_entries: u64,
    },
    ZeroMaximumEntries {
        encoded_required_insert_count: u64,
    },
    EncodedRequiredInsertCountOutOfRange {
        encoded_required_insert_count: u64,
        full_range: u64,
    },
    MaximumValueOverflow {
        total_insert_count: u64,
        max_entries: u64,
    },
    RequiredInsertCountOverflow {
        max_wrapped: u64,
        encoded_required_insert_count: u64,
    },
    RequiredInsertCountTooOld {
        reconstructed: u64,
        maximum_value: u64,
        full_range: u64,
    },
    RequiredInsertCountZero,
    BaseOverflow {
        required_insert_count: u64,
        delta_base: u64,
    },
    BaseUnderflow {
        required_insert_count: u64,
        delta_base: u64,
    },
}
Expand description

A failure while resolving QPACK field-section prefix semantics.

Variants§

§

FullRangeOverflow

Doubling the maximum entry count overflowed u64.

Fields

§maximum_table_capacity: u64

The peer’s maximum dynamic-table capacity.

§max_entries: u64

The maximum entry count derived from that capacity.

§

ZeroMaximumEntries

A nonzero count cannot be represented when the maximum entry count is zero.

Fields

§encoded_required_insert_count: u64

The triggering encoded or semantic Required Insert Count.

§

EncodedRequiredInsertCountOutOfRange

The encoded Required Insert Count exceeds the full range.

Fields

§encoded_required_insert_count: u64

The wire Encoded Required Insert Count.

§full_range: u64

Twice the maximum entry count.

§

MaximumValueOverflow

Adding the maximum entry count to the decoder insert count overflowed u64.

Fields

§total_insert_count: u64

The decoder’s total insert count.

§max_entries: u64

The maximum entry count derived from peer capacity.

§

RequiredInsertCountOverflow

Reconstructing or encoding the Required Insert Count overflowed u64.

Fields

§max_wrapped: u64

The wrapped count or quotient involved in the failed calculation.

§encoded_required_insert_count: u64

The encoded or semantic Required Insert Count involved in the calculation.

§

RequiredInsertCountTooOld

The reconstructed count cannot be valid for the decoder state.

Fields

§reconstructed: u64

The reconstructed Required Insert Count.

§maximum_value: u64

The largest Required Insert Count valid for the decoder state.

§full_range: u64

Twice the maximum entry count.

§

RequiredInsertCountZero

A nonzero encoded count reconstructed to zero.

§

BaseOverflow

Adding Delta Base to Required Insert Count overflowed u64.

Fields

§required_insert_count: u64

The Required Insert Count.

§delta_base: u64

The Delta Base.

§

BaseUnderflow

Subtracting Delta Base and one from Required Insert Count underflowed u64.

Fields

§required_insert_count: u64

The Required Insert Count.

§delta_base: u64

The Delta Base.

Trait Implementations§

Source§

impl Clone for QpackFieldSectionContextError

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 QpackFieldSectionContextError

Source§

impl Debug for QpackFieldSectionContextError

Source§

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

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

impl Display for QpackFieldSectionContextError

Source§

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

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

impl Eq for QpackFieldSectionContextError

Source§

impl Error for QpackFieldSectionContextError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for QpackFieldSectionContextError

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 QpackFieldSectionContextError

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.