#[non_exhaustive]#[repr(i32)]pub enum OsError {
Other(i32),
Unsupported = -2,
OperationNotPermitted = -4,
BadParameter = -5,
}Available on crate feature
mmc only.Expand description
operating system error
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.
Other(i32)
other error: {0}
Unsupported = -2
unsupported operation
OperationNotPermitted = -4
operation not permitted
BadParameter = -5
bad parameter
Trait Implementations§
Source§impl Error for OsError
impl Error for OsError
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()
Auto Trait Implementations§
impl Freeze for OsError
impl RefUnwindSafe for OsError
impl Send for OsError
impl Sync for OsError
impl Unpin for OsError
impl UnsafeUnpin for OsError
impl UnwindSafe for OsError
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