[][src]Enum gzip_header::ExtraFlags

#[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

DefaultMaximumCompressionFastestCompression

Methods

impl ExtraFlags[src]

pub fn from_u8(value: u8) -> 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.

pub fn as_u8(&self) -> u8[src]

Get the raw byte value of this ExtraFlags variant.

Trait Implementations

impl Default for ExtraFlags[src]

impl Clone for ExtraFlags[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<ExtraFlags> for ExtraFlags[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Eq for ExtraFlags[src]

impl Copy for ExtraFlags[src]

impl Debug for ExtraFlags[src]

impl Display for ExtraFlags[src]

impl Hash for ExtraFlags[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

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

Auto Trait Implementations

impl Send for ExtraFlags

impl Sync for ExtraFlags

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]