Enum gzip_header::FileSystemType[][src]

#[repr(u8)]
pub enum FileSystemType {
Show 21 variants Fat, Amiga, Vms, Unix, Vcms, AtariTos, Hpfs, Macintosh, Zsystem, Cpm, Tops20OrNTFS, NTFS, SmsQdos, Riscos, Vfat, Mvs, Beos, TandemNsk, Theos, Apple, Unknown,
}
Expand description

An enum describing the different OS types described in the gzip format. See http://www.gzip.org/format.txt (Additionally, the Apple(19) value is defined in the zlib library).

Variants

Fat

MS-DOS/old FAT filesystem

Amiga
Vms
Unix
Vcms
AtariTos
Hpfs
Macintosh

Used for apple platforms. Newer encoders may use 19 instead for modern systems.

Zsystem
Cpm
Tops20OrNTFS

This is used for Windows/NTFS in zlib newer than 1.2.11, but not in gzip due to following updates to the ZIP format. See https://github.com/madler/zlib/issues/235 and https://github.com/madler/zlib/commit/ce12c5cd00628bf8f680c98123a369974d32df15

NTFS

Used for Windows platforms for older zlib versions and other encoders.

SmsQdos
Riscos
Vfat

Newer fat filesystems (i.e FAT32).

Mvs
Beos
TandemNsk
Theos
Apple

Modern apple platforms. Defined in the zlib library (see zutil.h)

Unknown

Implementations

Get the raw byte value of this FileSystemType variant.

Get the corresponding ExtraFlags value from a raw byte.

Returns FileSystemType::Unknown (defined as 255 as that is the value used in the specification for Unknown) if the value is not one of the currently known types (Which currently means any value > 19).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

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

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.