[][src]Struct hpack_codec::table::DynamicTable

pub struct DynamicTable { /* fields omitted */ }

Dynamic Indexing Table.

See: 2.3.2. Dynamic Table

Methods

impl DynamicTable[src]

pub fn entries(&self) -> &VecDeque<HeaderField<'static>>[src]

Returns the reference to the dynamically indexed entries

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

Returns the size of this table.

See: 4.1. Calculating Table Size

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

Returns the hard limit of the size of this table.

See: 4.2. Maximum Table Size

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

Returns the soft limit of the size of this table.

See: 4.2. Maximum Table Size

pub fn set_size_hard_limit(&mut self, max_size: u16)[src]

Sets the hard limit of the size of this table.

Note that the soft limit will be truncated to max_size if it is greater than max_size.

pub fn set_size_soft_limit(&mut self, max_size: u16) -> Result<()>[src]

Sets the soft limit of the size of this table.

Errors

If max_size exceeds the hard limit of this table, an error will be returned.

Trait Implementations

impl Debug for DynamicTable[src]

Auto Trait Implementations

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]