pub enum FileSystem {
Show 13 variants
Btrfs,
Exfat,
Ext2,
Ext3,
Ext4,
F2fs,
Fat16,
Fat32,
Ntfs,
Swap,
Xfs,
Luks,
Lvm,
}
Expand description
Describes a file system format, such as ext4 or fat32.
Variants§
Implementations§
Source§impl FileSystem
impl FileSystem
Sourcepub fn validate_size(self, size: u64) -> Result<(), PartitionSizeError>
pub fn validate_size(self, size: u64) -> Result<(), PartitionSizeError>
Check if a given size, in bytes, is valid for this file system.
§Possible Values
Ok(())
indicates a valid partition size.Err(PartitionSizeError::TooSmall)
for a partition that is too small.Err(PartitionSizeError::TooLarge)
for a partition that is too large.
Trait Implementations§
Source§impl Clone for FileSystem
impl Clone for FileSystem
Source§fn clone(&self) -> FileSystem
fn clone(&self) -> FileSystem
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 FileSystem
impl Debug for FileSystem
Source§impl Display for FileSystem
impl Display for FileSystem
Source§impl From<FileSystem> for FilesystemType<'static>
Enable integration with the sys_mount
crate, if it is used.
impl From<FileSystem> for FilesystemType<'static>
Enable integration with the sys_mount
crate, if it is used.
Source§fn from(fs: FileSystem) -> Self
fn from(fs: FileSystem) -> Self
Converts to this type from the input type.
Source§impl FromStr for FileSystem
impl FromStr for FileSystem
Source§impl Hash for FileSystem
impl Hash for FileSystem
Source§impl Into<&'static str> for FileSystem
impl Into<&'static str> for FileSystem
Source§impl PartialEq for FileSystem
impl PartialEq for FileSystem
impl Copy 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
Mutably borrows from an owned value. Read more