[−][src]Struct hpack_codec::Encoder
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]
&mut self,
block: W
) -> Result<HeaderBlockEncoder<W>>
Returns a HeaderBlockEncoder
instance for encoding header fields to the block
.
Trait Implementations
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]
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,