#[non_exhaustive]pub enum MmcTocError {
Os(MmcError),
InvalidResponse(String),
}Available on crate feature
mmc only.Expand description
error from a READ TOC/PMA/ATIP 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.
Os(MmcError)
operating system returned an error
InvalidResponse(String)
invalid response from mmc command: {0}
Trait Implementations§
Source§impl Debug for MmcTocError
impl Debug for MmcTocError
Source§impl Display for MmcTocError
impl Display for MmcTocError
Source§impl Error for MmcTocError
impl Error for MmcTocError
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 MmcTocError
impl From<ContextError> for MmcTocError
Source§fn from(err: ContextError) -> Self
fn from(err: ContextError) -> Self
Converts to this type from the input type.
Source§impl From<MmcError> for MmcTocError
impl From<MmcError> for MmcTocError
Source§impl<T: TryFromPrimitive> From<TryFromPrimitiveError<T>> for MmcTocError
impl<T: TryFromPrimitive> From<TryFromPrimitiveError<T>> for MmcTocError
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 MmcTocError
impl RefUnwindSafe for MmcTocError
impl Send for MmcTocError
impl Sync for MmcTocError
impl Unpin for MmcTocError
impl UnsafeUnpin for MmcTocError
impl UnwindSafe for MmcTocError
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