#[non_exhaustive]pub enum OptionClass {
Vfs,
Filesystem,
Userspace,
}Expand description
Classification of a mount option.
Determines whether an option belongs to the VFS layer, a specific filesystem driver, or userspace.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Vfs
VFS (Virtual File System) option — applies at the kernel VFS layer.
Examples: ro, noatime, bind, suid.
Filesystem
Filesystem-specific option — handled by the individual filesystem driver.
Examples: sync, async.
Userspace
Userspace option — consumed by userspace mount helpers.
Examples: defaults, user, _netdev, nofail.
Trait Implementations§
Source§impl Clone for OptionClass
impl Clone for OptionClass
Source§fn clone(&self) -> OptionClass
fn clone(&self) -> OptionClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OptionClass
impl Debug for OptionClass
Source§impl<'de> Deserialize<'de> for OptionClass
impl<'de> Deserialize<'de> for OptionClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OptionClass
impl PartialEq for OptionClass
Source§fn eq(&self, other: &OptionClass) -> bool
fn eq(&self, other: &OptionClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OptionClass
impl Serialize for OptionClass
impl Copy for OptionClass
impl Eq for OptionClass
impl StructuralPartialEq for OptionClass
Auto Trait Implementations§
impl Freeze for OptionClass
impl RefUnwindSafe for OptionClass
impl Send for OptionClass
impl Sync for OptionClass
impl Unpin for OptionClass
impl UnsafeUnpin for OptionClass
impl UnwindSafe for OptionClass
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