pub enum FileSystem {
Show 20 variants
Ext2,
Ext3,
Ext4,
VFat,
ExFat,
F2fs,
Ntfs,
Zfs,
Hfs,
HfsPlus,
Jfs,
Reiser3,
Reiser4,
Btrfs,
Minix,
Nilfs,
Xfs,
Apfs,
FuseBlk,
Other(String),
// some variants omitted
}
Expand description
Known filesystems.
All physical filesystems should have their own enum element
and all virtual filesystems will go into the Other
element.
Variants§
Ext2
ext2 (https://en.wikipedia.org/wiki/Ext2)
Ext3
ext3 (https://en.wikipedia.org/wiki/Ext3)
Ext4
ext4 (https://en.wikipedia.org/wiki/Ext4)
VFat
FAT (https://en.wikipedia.org/wiki/File_Allocation_Table)
ExFat
exFAT (https://en.wikipedia.org/wiki/ExFAT)
F2fs
F2FS (https://en.wikipedia.org/wiki/F2FS)
Ntfs
NTFS (https://en.wikipedia.org/wiki/NTFS)
Zfs
ZFS (https://en.wikipedia.org/wiki/ZFS)
Hfs
HFS (https://en.wikipedia.org/wiki/Hierarchical_File_System)
HfsPlus
HFS+ (https://en.wikipedia.org/wiki/HFS_Plus)
Jfs
JFS (https://en.wikipedia.org/wiki/JFS_(file_system))
Reiser3
ReiserFS 3 (https://en.wikipedia.org/wiki/ReiserFS)
Reiser4
ReiserFS 4 (https://en.wikipedia.org/wiki/Reiser4)
Btrfs
Btrfs (https://en.wikipedia.org/wiki/Btrfs)
Minix
MINIX FS (https://en.wikipedia.org/wiki/MINIX_file_system)
Nilfs
NILFS (https://en.wikipedia.org/wiki/NILFS)
Xfs
XFS (https://en.wikipedia.org/wiki/XFS)
Apfs
APFS (https://en.wikipedia.org/wiki/Apple_File_System)
FuseBlk
FUSE (https://en.wikipedia.org/wiki/Filesystem_in_Userspace)
Other(String)
Some unspecified filesystem.
Implementations§
Source§impl FileSystem
impl FileSystem
Sourcepub fn is_physical(&self) -> bool
pub fn is_physical(&self) -> bool
Checks if filesystem is used for a physical devices
Sourcepub fn is_virtual(&self) -> bool
pub fn is_virtual(&self) -> bool
Checks if filesystem is used for a virtual devices (such as tmpfs
or smb
mounts)
Trait Implementations§
Source§impl Clone for FileSystem
impl Clone for FileSystem
Source§fn clone(&self) -> FileSystem
fn clone(&self) -> FileSystem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FileSystem
impl Debug for FileSystem
Source§impl FromStr for FileSystem
impl FromStr for FileSystem
Source§impl Hash for FileSystem
impl Hash for FileSystem
Source§impl PartialEq for FileSystem
impl PartialEq for FileSystem
impl Eq for FileSystem
impl StructuralPartialEq for FileSystem
Auto Trait Implementations§
impl Freeze for FileSystem
impl RefUnwindSafe for FileSystem
impl Send for FileSystem
impl Sync for FileSystem
impl Unpin for FileSystem
impl UnwindSafe for FileSystem
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
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)
clone_to_uninit
)