Struct flate2::GzBuilder [] [src]

pub struct GzBuilder { /* 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]

[src]

Create a new blank builder with no header by default.

[src]

Configure the mtime field in the gzip header.

[src]

Configure the extra field in the gzip header.

[src]

Configure the filename field in the gzip header.

[src]

Configure the comment field in the gzip header.

[src]

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.

[src]

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.

[src]

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.