Enum gzip_header::FileSystemType
[−]
[src]
#[repr(u8)]pub enum FileSystemType { Fat, Amiga, Vms, Unix, Vcms, AtariTos, Hpfs, Macintosh, Zsystem, Cpm, Tops20OrNTFS, NTFS, SmsQdos, Riscos, Vfat, Mvs, Beos, TandemNsk, Theos, Apple, Unknown, }
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
FatMS-DOS/old FAT filesystem
AmigaVmsUnixVcmsAtariTosHpfsMacintoshUsed for apple platforms. Newer encoders may use 19 instead for modern systems.
ZsystemCpmTops20OrNTFSThis 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
NTFSUsed for Windows platforms for older zlib versions and other encoders.
SmsQdosRiscosVfatNewer fat filesystems (i.e FAT32).
MvsBeosTandemNskTheosAppleModern apple platforms. Defined in the zlib library (see zutil.h)
UnknownMethods
impl FileSystemType[src]
fn as_u8(&self) -> u8
Get the raw byte value of this FileSystemType variant.
fn from_u8(value: u8) -> FileSystemType
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
impl Debug for FileSystemType[src]
impl Copy for FileSystemType[src]
impl Clone for FileSystemType[src]
fn clone(&self) -> FileSystemType
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 FileSystemType[src]
fn eq(&self, __arg_0: &FileSystemType) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Eq for FileSystemType[src]
impl Hash for FileSystemType[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