Struct hpack_codec::table::Table
[−]
[src]
pub struct Table { /* fields omitted */ }
Table for associating header fields to indexes.
See: 2.3. Indexing Tables
Methods
impl Table
[src]
fn new(max_dynamic_table_size: u16) -> Self
[src]
Makes a new Table
instance.
fn dynamic(&self) -> &DynamicTable
[src]
Returns the reference to DynamicTable
instance.
fn dynamic_mut(&mut self) -> &mut DynamicTable
[src]
Returns the mutable reference to the DynamicTable
instance.
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.
fn len(&self) -> u16
[src]
Returns the number of indexed entries.