[−][src]Struct sys_mount::SupportedFilesystems
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]
fn clone(&self) -> SupportedFilesystems
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SupportedFilesystems
[src]
impl<'a> From<&'a SupportedFilesystems> for FilesystemType<'a>
[src]
fn from(s: &'a SupportedFilesystems) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for SupportedFilesystems
impl Send for SupportedFilesystems
impl Sync for SupportedFilesystems
impl Unpin for SupportedFilesystems
impl UnwindSafe for SupportedFilesystems
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,