[−][src]Struct hpack_codec::Decoder
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]
&'a mut self,
block: &'b [u8]
) -> Result<HeaderBlockDecoder<'a, 'b>>
Returns a HeaderBlockDecoder
instance for decoding the header block block
.
Trait Implementations
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]
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,