#[non_exhaustive]#[repr(u8)]pub enum System {
Show 21 variants
Dos = 0,
Amiga = 1,
OpenVMS = 2,
Unix = 3,
VmCms = 4,
AtariSt = 5,
Os2 = 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,
OsDarwin = 19,
Unknown = 255,
}Expand description
System inside version made by (upper byte)
Reference: 4.4.2.2
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dos = 0
MS-DOS and OS/2 (FAT / VFAT / FAT32 file systems; default on Windows)
Amiga = 1
Amiga
OpenVMS = 2
OpenVMS
Unix = 3
Default on Unix; default for symlinks on all platforms
VmCms = 4
VM/CMS
AtariSt = 5
Atari ST
Os2 = 6
OS/2 H.P.F.S.
Macintosh = 7
Legacy Mac OS, pre OS X
ZSystem = 8
Z-System
CPM = 9
CP/M
WindowsNTFS = 10
Windows NTFS (with extra attributes; not used by default)
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
OsDarwin = 19
OS X (Darwin) (with extra attributes; not used by default)
Unknown = 255
unused
Implementations§
Trait Implementations§
impl Copy for System
impl Eq for System
impl StructuralPartialEq for System
Auto Trait Implementations§
impl Freeze for System
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnsafeUnpin for System
impl UnwindSafe for System
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.