Struct CardState
#[repr(transparent)]pub struct CardState(pub c_int);Expand description
Card state.
Tuple Fields§
§0: c_intImplementations§
§impl CardState
impl CardState
pub const UNKNOWN: Self
pub const UNKNOWN: Self
Card state unknown.
pub const ABSENT: Self
pub const ABSENT: Self
Card is absent.
pub const PRESENT: Self
pub const PRESENT: Self
Card is present.
pub const ERROR_UNKNOWN: Self
pub const ERROR_UNKNOWN: Self
Unknown error state.
pub const ERROR_POWER_DOWN: Self
pub const ERROR_POWER_DOWN: Self
Power down.
pub const ERROR_POLL_ERROR: Self
pub const ERROR_POLL_ERROR: Self
Poll error.
pub const ERROR_NO_ATR_RECEIVED: Self
pub const ERROR_NO_ATR_RECEIVED: Self
Failed to receive an answer to reset.
pub const ERROR_VOLT_MISMATCH: Self
pub const ERROR_VOLT_MISMATCH: Self
Voltage mismatch.
pub const ERROR_PARITY_ERROR: Self
pub const ERROR_PARITY_ERROR: Self
Parity error.
pub const ERROR_SIM_TECHNICAL_PROBLEMS: Self
pub const ERROR_SIM_TECHNICAL_PROBLEMS: Self
Card returned technical problems.
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 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