pub type AsyncBzip2CompressWriter<W> = AsyncProcessorWriter<Bzip2Compress, W>;
Available on crate features bzip2 and tokio only.
Expand description

AsyncBzip2CompressWriter is a struct that allows compression of data using the BZip2 format.

Example

let file_writer = File::create("target/doc-bzip2-compress-async-writer.gz").await?;
let mut bzip2_writer = AsyncBzip2CompressWriter::new(file_writer);
bzip2_writer.write_all(&b"Hello, world"[..]).await?;
bzip2_writer.shutdown().await?;

Aliased Type§

struct AsyncBzip2CompressWriter<W> { /* private fields */ }