Enum rc_zip::parse::HostSystem
source · #[repr(u8)]pub enum HostSystem {
Show 21 variants
MsDos = 0,
Amiga = 1,
OpenVms = 2,
Unix = 3,
VmCms = 4,
AtariSt = 5,
Os2Hpfs = 6,
Macintosh = 7,
ZSystem = 8,
CpM = 9,
WindowsNtfs = 10,
Mvs = 11,
Vse = 12,
AcornRisc = 13,
Vfat = 14,
AlternateMvs = 15,
BeOs = 16,
Tandem = 17,
Os400 = 18,
Osx = 19,
Unknown(u8),
}
Expand description
System on which an archive was created, as encoded into a version u16.
See APPNOTE, section 4.4.2.2
Variants§
MsDos = 0
MS-DOS and OS/2 (FAT / VFAT / FAT32 file systems)
Amiga = 1
Amiga
OpenVms = 2
OpenVMS
Unix = 3
UNIX
VmCms = 4
VM/CMS
AtariSt = 5
Atari ST
Os2Hpfs = 6
OS/2 H.P.F.S
Macintosh = 7
Macintosh (see Osx
)
ZSystem = 8
Z-System
CpM = 9
CP/M
WindowsNtfs = 10
Windows NTFS
Mvs = 11
MVS (OS/390 - Z/OS)
Vse = 12
VSE
AcornRisc = 13
Acorn Risc
Vfat = 14
VFAT
AlternateMvs = 15
alternate MVS
BeOs = 16
BeOS
Tandem = 17
Tandem
Os400 = 18
OS/400
Osx = 19
OS X (Darwin)
Unknown(u8)
Unknown host system
Values 20 through 255 are currently unused, as of APPNOTE.TXT 6.3.10
Implementations§
source§impl HostSystem
impl HostSystem
sourcepub fn to_owned(&self) -> HostSystem
pub fn to_owned(&self) -> HostSystem
Copy the structure and clone the original values.
This is always a deep copy.
source§impl HostSystem
impl HostSystem
sourcepub fn into_owned(self) -> HostSystem
pub fn into_owned(self) -> HostSystem
Copy the structure and clone the original values if it’s not owned.
This is always a deep copy of the structure.
Trait Implementations§
source§impl Clone for HostSystem
impl Clone for HostSystem
source§fn clone(&self) -> HostSystem
fn clone(&self) -> HostSystem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HostSystem
impl Debug for HostSystem
source§impl From<HostSystem> for u8
impl From<HostSystem> for u8
source§fn from(enum_value: HostSystem) -> Self
fn from(enum_value: HostSystem) -> Self
Converts to this type from the input type.
source§impl From<u8> for HostSystem
impl From<u8> for HostSystem
source§impl FromPrimitive for HostSystem
impl FromPrimitive for HostSystem
source§impl Hash for HostSystem
impl Hash for HostSystem
source§impl IntoOwned for HostSystem
impl IntoOwned for HostSystem
source§type Owned = HostSystem
type Owned = HostSystem
The type after obtaining ownership, should be the same as before but with static lifetime.
source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Copy the structure and clone the original values if it’s not owned. Read more
source§impl PartialEq for HostSystem
impl PartialEq for HostSystem
source§impl ToOwned for HostSystem
impl ToOwned for HostSystem
impl Copy for HostSystem
impl Eq for HostSystem
impl StructuralPartialEq for HostSystem
Auto Trait Implementations§
impl Freeze for HostSystem
impl RefUnwindSafe for HostSystem
impl Send for HostSystem
impl Sync for HostSystem
impl Unpin for HostSystem
impl UnwindSafe for HostSystem
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)