Crate ratchet_deflate

Source
Expand description

An implementation of permessage-deflate (RFC 7692) as an extension for Ratchet.

See the documentation in Ratchet for more details on using this extension.

Structs§

Compression
When compressing data, the compression level can be specified by a value in this struct.
Deflate
A negotiated permessage-deflate extension. Used by a WebSocket session for compressing and decompressing data.
DeflateConfig
A permessage-deflate configuration.
DeflateDecoder
A permessage-deflate decompressor. Only producible by the SplittableExtension implementation on Deflate.
DeflateEncoder
A permessage-deflate compressor. Only producible by the SplittableExtension implementation on Deflate.
DeflateExtProvider
An ExtensionProvider for negotiating permessage-deflate during a WebSocket handshake.
WindowBits
Client or server maximum window bits. Wrapping a u8 with a value in the range of 8..=15.
WindowBitsParseErr
An error produced by TryFrom<u8> on WindowBits when the value is not in the range of 8..=15.

Enums§

DeflateExtensionError
Errors produced by the deflate extension.