[][src]Module async_compression::stream

This is supported on feature="stream" only.

Types which operate over Stream<Item = io::Result<Bytes>> streams, both encoders and decoders for various formats.

The Stream is treated as a single byte-stream to be compressed/decompressed, each item is a chunk of data from this byte-stream. There is not guaranteed to be a one-to-one relationship between chunks of data from the underlying stream and the resulting compressed/decompressed stream, the encoders and decoders will buffer the incoming data and choose their own boundaries at which to yield a new item.

Structs

BrotliDecoderfeature="stream" and feature="brotli"

A brotli decoder, or decompressor.

BrotliEncoderfeature="stream" and feature="brotli"

A brotli encoder, or compressor.

BzDecoderfeature="stream" and feature="bzip2"

A bzip2 decoder, or decompressor.

BzEncoderfeature="stream" and feature="bzip2"

A bzip2 encoder, or compressor.

DeflateDecoderfeature="stream" and feature="deflate"

A deflate decoder, or decompressor.

DeflateEncoderfeature="stream" and feature="deflate"

A deflate encoder, or compressor.

GzipDecoderfeature="stream" and feature="gzip"

A gzip decoder, or decompressor.

GzipEncoderfeature="stream" and feature="gzip"

A gzip encoder, or compressor.

ZlibDecoderfeature="stream" and feature="zlib"

A zlib decoder, or decompressor.

ZlibEncoderfeature="stream" and feature="zlib"

A zlib encoder, or compressor.

ZstdDecoderfeature="stream" and feature="zstd"

A zstd decoder, or decompressor.

ZstdEncoderfeature="stream" and feature="zstd"

A zstd encoder, or compressor.