pub type AsyncGzipDecompressReader<R> = AsyncProcessorReader<GzipDecompress, R>;
Available on crate features gzip and tokio only.
Expand description

AsyncGzipDecompressReader is a struct that allows decompression of data using the GZIP format.

Example

let buf_reader = BufReader::new(File::open("testfiles/pg2701.txt.gz").await?);
let mut gzip_reader = AsyncGzipDecompressReader::new(buf_reader);
let mut buf = Vec::new();
gzip_reader.read_to_end(&mut buf).await?;

Aliased Type§

struct AsyncGzipDecompressReader<R> { /* private fields */ }