Module cdrs_tokio::compression [−][src]
CDRS support traffic decompression as it is described in Apache Cassandra protocol
Before being used, client and server must agree on a compression algorithm to use, which is done in the STARTUP message. As a consequence, a STARTUP message must never be compressed. However, once the STARTUP frame has been received by the server, messages can be compressed (including the response to the STARTUP request).
Enums
Compression | Enum which represents a type of compression. Only non-startup frame’s body can be compressed. |
CompressionError | It’s an error which may occur during encoding or decoding frame body. As there are only two types of compressors it contains two related enum options. |
Constants
LZ4 | |
SNAPPY |