AsyncZstdDecompressReader

Type Alias AsyncZstdDecompressReader 

Source
pub type AsyncZstdDecompressReader<R> = AsyncProcessorReader<ZstdDecompress, R>;
Available on crate features zstd and tokio only.
Expand description

AsyncZstdDecompressReader is a struct that allows decompression of data using the zstd format.

§Example

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

Aliased Type§

pub struct AsyncZstdDecompressReader<R> { /* private fields */ }