Skip to main content

Compressor

Trait Compressor 

Source
pub trait Compressor<W>: Write + Send {
    // Required method
    fn finish(self: Box<Self>) -> Result<W>;
}
Expand description

A writer that compresses into W, finished explicitly.

Required Methods§

Source

fn finish(self: Box<Self>) -> Result<W>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<W: Write + Send> Compressor<W> for GzEncoder<W>

Source§

fn finish(self: Box<Self>) -> Result<W>

Implementors§