Struct sys_mount::SupportedFilesystems [−][src]
pub struct SupportedFilesystems { /* fields omitted */ }Data structure for validating if a filesystem argument is valid, and used within automatic file system mounting.
Methods
impl SupportedFilesystems[src]
impl SupportedFilesystemspub fn new() -> Result<Self>[src]
pub fn new() -> Result<Self>pub fn is_supported(&self, fs: &str) -> bool[src]
pub fn is_supported(&self, fs: &str) -> boolCheck 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<Iterator<Item = &str> + 'a>[src]
pub fn nodev_file_systems<'a>(&'a self) -> Box<Iterator<Item = &str> + 'a>Iterate through file systems which are not associated with physical devices.
pub fn dev_file_systems<'a>(&'a self) -> Box<Iterator<Item = &str> + 'a>[src]
pub fn dev_file_systems<'a>(&'a self) -> Box<Iterator<Item = &str> + 'a>Iterate through file systems which are associated with physical devices.
Trait Implementations
impl<'a> From<&'a SupportedFilesystems> for FilesystemType<'a>[src]
impl<'a> From<&'a SupportedFilesystems> for FilesystemType<'a>fn from(s: &'a SupportedFilesystems) -> Self[src]
fn from(s: &'a SupportedFilesystems) -> SelfPerforms the conversion.
impl Clone for SupportedFilesystems[src]
impl Clone for SupportedFilesystemsfn clone(&self) -> SupportedFilesystems[src]
fn clone(&self) -> SupportedFilesystemsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for SupportedFilesystems[src]
impl Debug for SupportedFilesystemsAuto Trait Implementations
impl Send for SupportedFilesystems
impl Send for SupportedFilesystemsimpl Sync for SupportedFilesystems
impl Sync for SupportedFilesystems