[−][src]Enum gzip_header::FileSystemType
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
Methods
impl FileSystemType
[src]
pub fn as_u8(&self) -> u8
[src]
Get the raw byte value of this FileSystemType
variant.
pub fn from_u8(value: u8) -> FileSystemType
[src]
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 Eq for FileSystemType
[src]
impl PartialEq<FileSystemType> for FileSystemType
[src]
fn eq(&self, other: &FileSystemType) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for FileSystemType
[src]
fn clone(&self) -> FileSystemType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for FileSystemType
[src]
impl Debug for FileSystemType
[src]
impl Display for FileSystemType
[src]
impl Hash for FileSystemType
[src]
Auto Trait Implementations
impl Send for FileSystemType
impl Sync for FileSystemType
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,