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§

source

fn gz_encode(self, lvl: Compression) -> GzEncoder<Self>

Consume this reader to create a compression stream at the specified compression level.

source

fn gz_decode(self) -> Result<GzDecoder<Self>>

Consume this reader to create a decompression stream of this stream.

source

fn zlib_encode(self, lvl: Compression) -> ZlibEncoder<Self>

Consume this reader to create a compression stream at the specified compression level.

source

fn zlib_decode(self) -> ZlibDecoder<Self>

Consume this reader to create a decompression stream of this stream.

source

fn deflate_encode(self, lvl: Compression) -> DeflateEncoder<Self>

Consume this reader to create a compression stream at the specified compression level.

source

fn deflate_decode(self) -> DeflateDecoder<Self>

Consume this reader to create a decompression stream of this stream.

Implementors§

source§

impl<T: Read> FlateReadExt for T