Struct flate2::GzBuilder [] [src]

pub struct GzBuilder {
    // some fields omitted
}

A builder structure to create a new gzip Encoder.

This structure controls header configuration options such as the filename.

Methods

impl Builder
[src]

Create a new blank builder with no header by default.

Configure the mtime field in the gzip header.

Configure the extra field in the gzip header.

Configure the filename field in the gzip header.

Configure the comment field in the gzip header.

Consume this builder, creating a writer encoder in the process.

The data written to the returned encoder will be compressed and then written out to the supplied parameter w.

Consume this builder, creating a reader encoder in the process.

Data read from the returned encoder will be the compressed version of the data read from the given reader.

Consume this builder, creating a reader encoder in the process.

Data read from the returned encoder will be the compressed version of the data read from the given reader.