pub enum Error<T, S> {
}
Expand description
SdMmcSpi
result error.
T
- transport error type.
S
- select switch type.
Variants§
Transport(T)
Error from the SPI peripheral.
SelectError(S)
Couldn’t set a select.
CantEnableCRC
Failed to enable CRC checking on the card.
TimeoutReadBuffer
No response when reading data from the card.
TimeoutWaitAvailable
No response when waiting for the card to not be busy.
TimeoutCommand(u8)
No response when executing this command.
ErrorCommand(u8)
Command error.
RegisterReadError
Failed to read the Card Specific Data register.
CrcError(u16, u16)
CRC mismatch (card, host).
ReadError
Error reading from the card.
WriteError
Error writing to the card.
BadState
Can’t perform this operation with the card in this state.
CardNotFound
Couldn’t find the card.
Trait Implementations§
impl<T: Copy, S: Copy> Copy for Error<T, S>
impl<T: Eq, S: Eq> Eq for Error<T, S>
impl<T, S> StructuralPartialEq for Error<T, S>
Auto Trait Implementations§
impl<T, S> Freeze for Error<T, S>
impl<T, S> RefUnwindSafe for Error<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for Error<T, S>
impl<T, S> Sync for Error<T, S>
impl<T, S> Unpin for Error<T, S>
impl<T, S> UnwindSafe for Error<T, S>where
T: UnwindSafe,
S: UnwindSafe,
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