Skip to main content

QpackFieldSectionDecodeError

Enum QpackFieldSectionDecodeError 

Source
pub enum QpackFieldSectionDecodeError {
    Prefix(QpackFieldSectionPrefixParseError),
    Context(QpackFieldSectionContextError),
    FieldLines(QpackFieldLinesParseError),
    StaticIndexOutOfRange {
        index: u64,
    },
    DynamicReference(QpackDynamicTableError),
    LiteralNameHuffman(QpackHuffmanDecodeError),
    ValueHuffman(QpackHuffmanDecodeError),
    OutputBytesTooShort {
        required: usize,
        available: usize,
    },
    OutputFieldsTooShort {
        required: usize,
        available: usize,
    },
    OutputLengthOverflow,
}
Expand description

A failure to semantically decode one QPACK field section.

Variants§

§

Prefix(QpackFieldSectionPrefixParseError)

The field-section prefix is malformed.

§

Context(QpackFieldSectionContextError)

The field-section prefix cannot be resolved for this decoder context.

§

FieldLines(QpackFieldLinesParseError)

The encoded field-line sequence is malformed.

§

StaticIndexOutOfRange

A static-table index is outside RFC 9204 Appendix A.

Fields

§index: u64

The requested zero-based static index.

§

DynamicReference(QpackDynamicTableError)

A dynamic-table reference is invalid for this field section.

§

LiteralNameHuffman(QpackHuffmanDecodeError)

A literal field name has invalid Huffman coding.

§

ValueHuffman(QpackHuffmanDecodeError)

A field value has invalid Huffman coding.

§

OutputBytesTooShort

The caller byte output cannot contain the decoded section.

Fields

§required: usize

Bytes required.

§available: usize

Bytes available.

§

OutputFieldsTooShort

The caller metadata output cannot contain the decoded section.

Fields

§required: usize

Fields required.

§available: usize

Fields available.

§

OutputLengthOverflow

Counting packed output bytes or fields overflowed usize.

Implementations§

Source§

impl QpackFieldSectionDecodeError

Source

pub const fn is_decompression_failed(self) -> bool

Returns whether this error represents QPACK decompression failure.

Source

pub const fn is_output_provisioning_error(self) -> bool

Returns whether this error is solely insufficient caller output provisioning.

Trait Implementations§

Source§

impl Clone for QpackFieldSectionDecodeError

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 QpackFieldSectionDecodeError

Source§

impl Debug for QpackFieldSectionDecodeError

Source§

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

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

impl Display for QpackFieldSectionDecodeError

Source§

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

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

impl Eq for QpackFieldSectionDecodeError

Source§

impl Error for QpackFieldSectionDecodeError

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 From<QpackFieldSectionDecodeError> for Http3QpackFieldSectionError

Source§

fn from(error: QpackFieldSectionDecodeError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for QpackFieldSectionDecodeError

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 QpackFieldSectionDecodeError

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.