#[non_exhaustive]pub enum OptionsError {
EmptyOptionName,
}Expand description
Error parsing mount options (fstab field 4).
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.
EmptyOptionName
An option had an empty name (e.g., leading comma or =value without a name).
Trait Implementations§
Source§impl Clone for OptionsError
impl Clone for OptionsError
Source§fn clone(&self) -> OptionsError
fn clone(&self) -> OptionsError
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 OptionsError
impl Debug for OptionsError
Source§impl<'de> Deserialize<'de> for OptionsError
impl<'de> Deserialize<'de> for OptionsError
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 Display for OptionsError
impl Display for OptionsError
Source§impl Error for OptionsError
impl Error for OptionsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<OptionsError> for ParseErrorKind
impl From<OptionsError> for ParseErrorKind
Source§fn from(source: OptionsError) -> Self
fn from(source: OptionsError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OptionsError
impl PartialEq for OptionsError
Source§fn eq(&self, other: &OptionsError) -> bool
fn eq(&self, other: &OptionsError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OptionsError
impl Serialize for OptionsError
impl Eq for OptionsError
impl StructuralPartialEq for OptionsError
Auto Trait Implementations§
impl Freeze for OptionsError
impl RefUnwindSafe for OptionsError
impl Send for OptionsError
impl Sync for OptionsError
impl Unpin for OptionsError
impl UnsafeUnpin for OptionsError
impl UnwindSafe for OptionsError
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