Trait flate2::FlateReadExt
source · pub trait FlateReadExt: Read + Sized {
// Provided methods
fn gz_encode(self, lvl: Compression) -> GzEncoder<Self> ⓘ { ... }
fn gz_decode(self) -> Result<GzDecoder<Self>> { ... }
fn zlib_encode(self, lvl: Compression) -> ZlibEncoder<Self> ⓘ { ... }
fn zlib_decode(self) -> ZlibDecoder<Self> ⓘ { ... }
fn deflate_encode(self, lvl: Compression) -> DeflateEncoder<Self> ⓘ { ... }
fn deflate_decode(self) -> DeflateDecoder<Self> ⓘ { ... }
}
Expand description
A helper trait to create encoder/decoders with method syntax.
Provided Methods§
sourcefn gz_encode(self, lvl: Compression) -> GzEncoder<Self> ⓘ
fn gz_encode(self, lvl: Compression) -> GzEncoder<Self> ⓘ
Consume this reader to create a compression stream at the specified compression level.
sourcefn gz_decode(self) -> Result<GzDecoder<Self>>
fn gz_decode(self) -> Result<GzDecoder<Self>>
Consume this reader to create a decompression stream of this stream.
sourcefn zlib_encode(self, lvl: Compression) -> ZlibEncoder<Self> ⓘ
fn zlib_encode(self, lvl: Compression) -> ZlibEncoder<Self> ⓘ
Consume this reader to create a compression stream at the specified compression level.
sourcefn zlib_decode(self) -> ZlibDecoder<Self> ⓘ
fn zlib_decode(self) -> ZlibDecoder<Self> ⓘ
Consume this reader to create a decompression stream of this stream.
sourcefn deflate_encode(self, lvl: Compression) -> DeflateEncoder<Self> ⓘ
fn deflate_encode(self, lvl: Compression) -> DeflateEncoder<Self> ⓘ
Consume this reader to create a compression stream at the specified compression level.
sourcefn deflate_decode(self) -> DeflateDecoder<Self> ⓘ
fn deflate_decode(self) -> DeflateDecoder<Self> ⓘ
Consume this reader to create a decompression stream of this stream.