[][src]Struct hpack_codec::Encoder

pub struct Encoder { /* fields omitted */ }

HPACK Encoder.

Methods

impl Encoder[src]

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

Makes a new Encoder 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)[src]

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

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

Sets the soft limit of the dynamic table size of this encoder.

Errors

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

pub fn enter_header_block<W: Write>(
    &mut self,
    block: W
) -> Result<HeaderBlockEncoder<W>>
[src]

Returns a HeaderBlockEncoder instance for encoding header fields to the block.

Trait Implementations

impl Debug for Encoder[src]

Auto Trait Implementations

impl Send for Encoder

impl Sync for Encoder

impl Unpin for Encoder

impl UnwindSafe for Encoder

impl RefUnwindSafe for Encoder

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]