Skip to main content

Module compression

Module compression 

Source

Structs§

GzipCompressor
A compressor that uses the gzip algorithm.
GzipDecompressor
Lz4Compressor
A compressor that uses the LZ4 algorithm.
Lz4Decompressor
SnappyCompressor
A compressor that uses the Snappy algorithm.
SnappyDecompressor
ZstdCompressor
ZstdDecompressor

Enums§

CompressionType
The possible compression type used for a message.

Traits§

Compressor
This trait is used to implement message-level compression algorithms for payloads. On outgoing messages, the payload is compressed before being sent using the compress method.
Decompressor
This trait is used to implement message-level decompression algorithms for payloads. On incoming messages, the payload is decompressed using the decompress method.

Functions§

try_decompress_payload
Tries to decompress a payload using the given compression type. If the compression type is None, the payload is returned as-is.