Struct ntex_h2::Codec

source ·
pub struct Codec(_);

Implementations§

Updates the max received frame size.

The change takes effect the next time a frame is decoded. In other words, if a frame is currently in process of being decoded with a frame size greater than val but less than the max frame size in effect before calling this function, then the frame will be allowed.

Local max frame size.

Set the max header list size that can be received.

Set the peer’s max frame size.

Set the peer’s header table size size.

Remote max frame size.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Decodes a frame.

This method is intentionally de-generified and outlined because it is very large.

The type of decoded frames.
The type of unrecoverable frame decoding errors. Read more
Attempts to decode a frame from the provided buffer of bytes.

Returns a new Codec with the default max frame size

The type of items consumed by the Encoder
The type of encoding errors.
Encodes a frame into the buffer provided.
Encodes a frame into the buffer provided.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.