[][src]Struct hpack_codec::HeaderBlockDecoder

pub struct HeaderBlockDecoder<'a, 'b> { /* fields omitted */ }

Header Block Decoder.

Methods

impl<'a, 'b: 'a> HeaderBlockDecoder<'a, 'b>[src]

pub fn decode_field(&mut self) -> Result<Option<HeaderField>>[src]

Decodes a header field.

If it reached the end of this block, Ok(None) will be returned.

pub fn decode_raw_field(&mut self) -> Result<Option<RawHeaderField<'b>>>[src]

Decodes a header field and returns the raw representation of it.

This method may be useful for intermediaries (see: [6.2.3. Literal Header Field Never Indexed] (https://tools.ietf.org/html/rfc7541#section-6.2.3)).

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

Returns the indexing table of this decoder.

Trait Implementations

impl<'a, 'b> Debug for HeaderBlockDecoder<'a, 'b>[src]

Auto Trait Implementations

impl<'a, 'b> Send for HeaderBlockDecoder<'a, 'b>

impl<'a, 'b> Sync for HeaderBlockDecoder<'a, 'b>

impl<'a, 'b> Unpin for HeaderBlockDecoder<'a, 'b>

impl<'a, 'b> !UnwindSafe for HeaderBlockDecoder<'a, 'b>

impl<'a, 'b> RefUnwindSafe for HeaderBlockDecoder<'a, 'b>

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]