Trait flate2::FlateWriteExt
source · pub trait FlateWriteExt: Write + Sized {
// Provided methods
fn gz_encode(self, lvl: Compression) -> GzEncoder<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 writer to create a compression stream at the specified compression level.
sourcefn zlib_encode(self, lvl: Compression) -> ZlibEncoder<Self> ⓘ
fn zlib_encode(self, lvl: Compression) -> ZlibEncoder<Self> ⓘ
Consume this writer to create a compression stream at the specified compression level.
sourcefn zlib_decode(self) -> ZlibDecoder<Self> ⓘ
fn zlib_decode(self) -> ZlibDecoder<Self> ⓘ
Consume this writer 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 writer to create a compression stream at the specified compression level.
sourcefn deflate_decode(self) -> DeflateDecoder<Self> ⓘ
fn deflate_decode(self) -> DeflateDecoder<Self> ⓘ
Consume this writer to create a decompression stream of this stream.