Structs§
- Gzip
Compressor - A compressor that uses the gzip algorithm.
- Gzip
Decompressor - Lz4Compressor
- A compressor that uses the LZ4 algorithm.
- Lz4Decompressor
- Snappy
Compressor - A compressor that uses the Snappy algorithm.
- Snappy
Decompressor - Zstd
Compressor - Zstd
Decompressor
Enums§
- Compression
Type - 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
compressmethod. - Decompressor
- This trait is used to implement message-level decompression algorithms for payloads.
On incoming messages, the payload is decompressed using the
decompressmethod.
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.