#[non_exhaustive]pub enum CardState {
Idle,
Ready,
Identification,
Standby,
Transfer,
SendingData,
ReceiveData,
Programming,
Disconnect,
Reserved(u8),
}Expand description
Card state machine states
Marked #[non_exhaustive]: SD/MMC specs may carve new state values out of
the reserved range, and downstream match sites must keep a _ => ... arm.
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.
Idle
Ready
Identification
Standby
Transfer
SendingData
ReceiveData
Programming
Disconnect
Reserved(u8)
Trait Implementations§
impl Copy for CardState
impl Eq for CardState
impl StructuralPartialEq for CardState
Auto Trait Implementations§
impl Freeze for CardState
impl RefUnwindSafe for CardState
impl Send for CardState
impl Sync for CardState
impl Unpin for CardState
impl UnsafeUnpin for CardState
impl UnwindSafe for CardState
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