Skip to main content

QpackFieldPlan

Enum QpackFieldPlan 

Source
pub enum QpackFieldPlan<'a> {
    IndexedStatic {
        index: u64,
    },
    IndexedDynamic {
        absolute_index: u64,
    },
    LiteralStaticNameReference {
        never_indexed: bool,
        name_index: u64,
        value_huffman: bool,
        encoded_value: &'a [u8],
    },
    LiteralDynamicNameReference {
        never_indexed: bool,
        name_absolute_index: u64,
        value_huffman: bool,
        encoded_value: &'a [u8],
    },
    LiteralName {
        never_indexed: bool,
        name_huffman: bool,
        encoded_name: &'a [u8],
        value_huffman: bool,
        encoded_value: &'a [u8],
    },
}
Expand description

One semantic field representation supplied to QpackFieldSectionEncoder.

Variants§

§

IndexedStatic

An indexed reference to the static table.

Fields

§index: u64

Zero-based static-table index.

§

IndexedDynamic

An indexed reference to the dynamic table by zero-based absolute index.

Fields

§absolute_index: u64

Zero-based dynamic absolute index.

§

LiteralStaticNameReference

A literal with a static-table name reference.

Fields

§never_indexed: bool

Whether the field must not be inserted by a recipient.

§name_index: u64

Zero-based static-table name index.

§value_huffman: bool

Whether encoded_value has Huffman coding.

§encoded_value: &'a [u8]

Opaque already-encoded value bytes.

§

LiteralDynamicNameReference

A literal with a dynamic-table name reference by zero-based absolute index.

Fields

§never_indexed: bool

Whether the field must not be inserted by a recipient.

§name_absolute_index: u64

Zero-based dynamic absolute name index.

§value_huffman: bool

Whether encoded_value has Huffman coding.

§encoded_value: &'a [u8]

Opaque already-encoded value bytes.

§

LiteralName

A literal name and value with already-encoded opaque payloads.

Fields

§never_indexed: bool

Whether the field must not be inserted by a recipient.

§name_huffman: bool

Whether encoded_name has Huffman coding.

§encoded_name: &'a [u8]

Opaque already-encoded name bytes.

§value_huffman: bool

Whether encoded_value has Huffman coding.

§encoded_value: &'a [u8]

Opaque already-encoded value bytes.

Trait Implementations§

Source§

impl<'a> Clone for QpackFieldPlan<'a>

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<'a> Copy for QpackFieldPlan<'a>

Source§

impl<'a> Debug for QpackFieldPlan<'a>

Source§

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

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

impl<'a> Eq for QpackFieldPlan<'a>

Source§

impl<'a> PartialEq for QpackFieldPlan<'a>

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<'a> StructuralPartialEq for QpackFieldPlan<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for QpackFieldPlan<'a>

§

impl<'a> RefUnwindSafe for QpackFieldPlan<'a>

§

impl<'a> Send for QpackFieldPlan<'a>

§

impl<'a> Sync for QpackFieldPlan<'a>

§

impl<'a> Unpin for QpackFieldPlan<'a>

§

impl<'a> UnsafeUnpin for QpackFieldPlan<'a>

§

impl<'a> UnwindSafe for QpackFieldPlan<'a>

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.