[][src]Struct sys_mount::SupportedFilesystems

pub struct SupportedFilesystems { /* fields omitted */ }

Data structure for validating if a filesystem argument is valid, and used within automatic file system mounting.

Implementations

impl SupportedFilesystems[src]

pub fn new() -> Result<Self>[src]

pub fn is_supported(&self, fs: &str) -> bool[src]

Check if a provided file system is valid on this system.

extern crate sys_mount;

use sys_mount::SupportedFilesystems;

fn main() {
    let supports = SupportedFilesystems::new().unwrap();
    println!("btrfs is {}", if supports.is_supported("btrfs") {
        "supported"
    } else {
        "not supported"
    });
}

pub fn nodev_file_systems<'a>(&'a self) -> Box<dyn Iterator<Item = &str> + 'a>[src]

Iterate through file systems which are not associated with physical devices.

pub fn dev_file_systems<'a>(&'a self) -> Box<dyn Iterator<Item = &str> + 'a>[src]

Iterate through file systems which are associated with physical devices.

Trait Implementations

impl Clone for SupportedFilesystems[src]

impl Debug for SupportedFilesystems[src]

impl<'a> From<&'a SupportedFilesystems> for FilesystemType<'a>[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, 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.