[][src]Enum disk_types::FileSystem

pub enum FileSystem {
    Btrfs,
    Exfat,
    Ext2,
    Ext3,
    Ext4,
    F2fs,
    Fat16,
    Fat32,
    Ntfs,
    Swap,
    Xfs,
    Luks,
    Lvm,
}

Describes a file system format, such as ext4 or fat32.

Variants

Btrfs
Exfat
Ext2
Ext3
Ext4
F2fs
Fat16
Fat32
Ntfs
Swap
Xfs
Luks
Lvm

Methods

impl FileSystem[src]

pub fn validate_size(self, size: u64) -> Result<(), PartitionSizeError>[src]

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

impl Clone for FileSystem[src]

impl Copy for FileSystem[src]

impl Debug for FileSystem[src]

impl Display for FileSystem[src]

impl From<FileSystem> for MountFS<'static>[src]

Enable integration with the sys_mount crate, if it is used.

impl FromStr for FileSystem[src]

type Err = &'static str

The associated error which can be returned from parsing.

impl Hash for FileSystem[src]

impl Into<&'static str> for FileSystem[src]

impl PartialEq<FileSystem> for FileSystem[src]

impl StructuralPartialEq for FileSystem[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.