[][src]Struct hpack_codec::Decoder

pub struct Decoder { /* fields omitted */ }

HPACK Decoder.

Methods

impl Decoder[src]

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

Makes a new Decoder instance.

pub fn table(&self) -> &Table[src]

Returns the indexing table of this decoder.

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

Sets the hard limit of the dynamic table size of this decoder.

Errors

If the value of max_size is greater than the soft limit of this decoder (i.e., the value of self.table().dynamic().size_soft_limit()), an error will be returned.

pub fn enter_header_block<'a, 'b>(
    &'a mut self,
    block: &'b [u8]
) -> Result<HeaderBlockDecoder<'a, 'b>>
[src]

Returns a HeaderBlockDecoder instance for decoding the header block block.

Trait Implementations

impl Debug for Decoder[src]

Auto Trait Implementations

impl Send for Decoder

impl Sync for Decoder

impl Unpin for Decoder

impl UnwindSafe for Decoder

impl RefUnwindSafe for Decoder

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]