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
Default
MaximumCompression
FastestCompression
Methods
impl ExtraFlags
[src]
fn from_u8(value: u8) -> ExtraFlags
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.
fn as_u8(&self) -> u8
Get the raw byte value of this ExtraFlags
variant.
Trait Implementations
impl Debug for ExtraFlags
[src]
impl Copy for ExtraFlags
[src]
impl Clone for ExtraFlags
[src]
fn clone(&self) -> ExtraFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for ExtraFlags
[src]
fn eq(&self, __arg_0: &ExtraFlags) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for ExtraFlags
[src]
impl Hash for ExtraFlags
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for ExtraFlags
[src]
impl Default for ExtraFlags
[src]
fn default() -> ExtraFlags
Returns the "default value" for a type. Read more