#[non_exhaustive]pub enum SdioError {
Show 29 variants
CmdTimeout {
cmd: u8,
time_ms: u64,
},
WriteTimeout {
time_ms: u64,
},
WrongCmd {
good_cmd: u8,
bad_cmd: u8,
},
BadRxCrc7 {
good_crc: u8,
bad_crc: u8,
},
BadTxCrc7 {},
BadRxCrc16 {
good_crc: u64,
bad_crc: u64,
},
BadTxCrc16 {},
BadCheck {
good_check: u8,
bad_check: u8,
},
BadVoltage {
bad_volt: u8,
},
BadVoltRange {
range: u32,
},
WriteFail {},
WriteUnknown {
response: u32,
},
CcError {},
CardEccFailed {},
IllegalCommand {},
OutOfRange {},
AddressError {},
BlockLenError {},
EraseSeqError {},
EraseParamError {},
WpViolation {},
CardIsLocked {},
LockUnlockFailed {},
CsdOverwrite {},
WpEraseSkip {},
AkeSeqError {},
CmdUnknownErr {},
InTxRx {},
UnexpectedEof {},
}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.
CmdTimeout
WriteTimeout
WrongCmd
BadRxCrc7
BadTxCrc7
BadRxCrc16
BadTxCrc16
BadCheck
BadVoltage
BadVoltRange
WriteFail
WriteUnknown
CcError
CardEccFailed
IllegalCommand
OutOfRange
AddressError
BlockLenError
EraseSeqError
EraseParamError
WpViolation
CardIsLocked
LockUnlockFailed
CsdOverwrite
WpEraseSkip
AkeSeqError
CmdUnknownErr
InTxRx
UnexpectedEof
Trait Implementations§
Source§impl ErrorCompat for SdioError
impl ErrorCompat for SdioError
Source§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreAuto Trait Implementations§
impl Freeze for SdioError
impl RefUnwindSafe for SdioError
impl Send for SdioError
impl Sync for SdioError
impl Unpin for SdioError
impl UnsafeUnpin for SdioError
impl UnwindSafe for SdioError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more