Struct flate2::write::GzEncoder [] [src]

pub struct GzEncoder<W: Write> {
    // some fields omitted
}

A gzip streaming encoder

This structure exposes a Write interface that will emit compressed data to the underlying writer W.

Methods

impl<W: Write> EncoderWriter<W>
[src]

Creates a new encoder which will use the given compression level.

The encoder is not configured specially for the emitted header. For header configuration, see the Builder type.

The data written to the returned encoder will be compressed and then written to the stream w.

Finish encoding this stream, returning the underlying writer once the encoding is done.

Trait Implementations

impl<W: Write> Write for EncoderWriter<W>
[src]

Write a buffer into this object, returning how many bytes were written. Read more

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

Attempts to write an entire buffer into this write. Read more

Writes a formatted string into this writer, returning any error encountered. Read more

Creates a "by reference" adaptor for this instance of Write. Read more

impl<W: Write> Drop for EncoderWriter<W>
[src]

A method called when the value goes out of scope. Read more