#[non_exhaustive]pub enum MmcStatusError {
Cmd(MmcError),
InvalidResponse(String),
EventNotSupported(EventClass),
}Available on crate feature
mmc only.Expand description
error from a GET EVENT STATUS NOTIFICATION command
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.
Cmd(MmcError)
error performing MMC command
InvalidResponse(String)
invalid response from mmc command: {0}
EventNotSupported(EventClass)
device does not support: {0:?}
Trait Implementations§
Source§impl Debug for MmcStatusError
impl Debug for MmcStatusError
Source§impl Display for MmcStatusError
impl Display for MmcStatusError
Source§impl Error for MmcStatusError
impl Error for MmcStatusError
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<ContextError> for MmcStatusError
impl From<ContextError> for MmcStatusError
Source§fn from(err: ContextError) -> Self
fn from(err: ContextError) -> Self
Converts to this type from the input type.
Source§impl From<MmcError> for MmcStatusError
impl From<MmcError> for MmcStatusError
Source§impl<T: TryFromPrimitive> From<TryFromPrimitiveError<T>> for MmcStatusError
impl<T: TryFromPrimitive> From<TryFromPrimitiveError<T>> for MmcStatusError
Source§fn from(err: TryFromPrimitiveError<T>) -> Self
fn from(err: TryFromPrimitiveError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MmcStatusError
impl RefUnwindSafe for MmcStatusError
impl Send for MmcStatusError
impl Sync for MmcStatusError
impl Unpin for MmcStatusError
impl UnsafeUnpin for MmcStatusError
impl UnwindSafe for MmcStatusError
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