Enum gzip_header::ExtraFlags [] [src]

#[repr(u8)]
pub enum ExtraFlags { Default, MaximumCompression, FastestCompression, }

Valid values for the extra flag in the gzip specification.

This is a field to be used by the compression methods. For deflate, which is the only specified compression method, this is a value indicating the level of compression of the contained compressed data. This value does not have to correspond to the actual compression level of the contained data, it's only a hint that the the encoder may set.

Variants

Methods

impl ExtraFlags
[src]

Get the corresponding ExtraFlags value from a raw byte.

Returns ExtraFlags::Default (defined as 0 by the gzip specification) for values other than 2 and 4.

Get the raw byte value of this ExtraFlags variant.

Trait Implementations

impl Debug for ExtraFlags
[src]

Formats the value using the given formatter.

impl Copy for ExtraFlags
[src]

impl Clone for ExtraFlags
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ExtraFlags
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ExtraFlags
[src]

impl Hash for ExtraFlags
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for ExtraFlags
[src]

Formats the value using the given formatter. Read more

impl Default for ExtraFlags
[src]

Returns the "default value" for a type. Read more