#[repr(u8)]pub enum CurrentState {
Idle = 0,
Ready = 1,
Identification = 2,
Standby = 3,
Transfer = 4,
Data = 5,
Receive = 6,
Program = 7,
Disabled = 8,
}
Expand description
Represents the card status when receiving the command.
Variants§
Idle = 0
Idle state.
Ready = 1
Ready state.
Identification = 2
Identification state.
Standby = 3
Standby state.
Transfer = 4
Transfer state.
Data = 5
Data state.
Receive = 6
Receive state.
Program = 7
Programming state.
Disabled = 8
Disabled state.
Implementations§
Source§impl CurrentState
impl CurrentState
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new CurrentState.
Sourcepub const fn from_raw_unchecked(val: u8) -> Self
pub const fn from_raw_unchecked(val: u8) -> Self
Sourcepub const fn from_raw(val: u8) -> Result<Self, Error>
pub const fn from_raw(val: u8) -> Result<Self, Error>
Attempts to convert a u8
into a CurrentState.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a CurrentState into a u8
.
Trait Implementations§
Source§impl Clone for CurrentState
impl Clone for CurrentState
Source§fn clone(&self) -> CurrentState
fn clone(&self) -> CurrentState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CurrentState
impl Debug for CurrentState
Source§impl Default for CurrentState
impl Default for CurrentState
Source§impl From<CurrentState> for u8
impl From<CurrentState> for u8
Source§fn from(val: CurrentState) -> Self
fn from(val: CurrentState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CurrentState
impl PartialEq for CurrentState
Source§impl TryFrom<u8> for CurrentState
impl TryFrom<u8> for CurrentState
impl Copy for CurrentState
impl Eq for CurrentState
impl StructuralPartialEq for CurrentState
Auto Trait Implementations§
impl Freeze for CurrentState
impl RefUnwindSafe for CurrentState
impl Send for CurrentState
impl Sync for CurrentState
impl Unpin for CurrentState
impl UnwindSafe for CurrentState
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