pub struct Deflate { /* private fields */ }
Expand description

The deflate extension type.

The extension does currently not support max. window bits other than the default, which is 15 and will ask for no context takeover during handshake.

Implementations

Create a new deflate extension either on client or server side.

Set the server’s max. window bits.

The value must be within 9 ..= 15. The extension must be in client mode.

By including this parameter, a client limits the LZ77 sliding window size that the server will use to compress messages. A server accepts by including the “server_max_window_bits” extension parameter in the response with the same or smaller value as the offer.

Set the client’s max. window bits.

The value must be within 9 ..= 15. The extension must be in client mode.

The parameter informs the server that even if it doesn’t include the “client_max_window_bits” extension parameter in the response with a value greater than the one in the negotiation offer or if it doesn’t include the extension parameter at all, the client is not going to use an LZ77 sliding window size greater than one given here. The server may also respond with a smaller value which allows the client to reduce its sliding window even more.

Trait Implementations

Formats the value using the given formatter. Read more

The name of this extension.

Is this extension enabled?

The parameters this extension wants to send for negotiation.

Configure this extension with the parameters received from negotiation.

The reserved bits this extension uses.

Decode a frame. Read more

Encode a frame, given as frame header and payload data.

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.

Should always be Self

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.