[−][src]Struct hpack_codec::table::Table
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
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,