[][src]Struct hpack_codec::table::Table

pub struct Table { /* fields omitted */ }

Table for associating header fields to indexes.

See: 2.3. Indexing Tables

Methods

impl Table[src]

pub fn new(max_dynamic_table_size: u16) -> Self[src]

Makes a new Table instance.

pub fn dynamic(&self) -> &DynamicTable[src]

Returns the reference to DynamicTable instance.

pub fn dynamic_mut(&mut self) -> &mut DynamicTable[src]

Returns the mutable reference to the DynamicTable instance.

pub fn get(&self, index: Index) -> Result<HeaderField>[src]

Returns the entry associated with the specified index.

Errors

If index value is too large, an error will be returned.

pub fn len(&self) -> u16[src]

Returns the number of indexed entries.

Trait Implementations

impl Debug for Table[src]

Auto Trait Implementations

impl Send for Table

impl Sync for Table

impl Unpin for Table

impl UnwindSafe for Table

impl RefUnwindSafe for Table

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]