Struct Card
pub struct Card {
pub state: CardState,
pub status_known: Option<bool>,
pub upin: PinInfo,
pub error_code: CardErrorCode,
pub apps: Items<App>,
}Expand description
A card slot (card_info_type_v01).
Fields§
§state: CardStateState of the slot.
status_known: Option<bool>Whether state is known (card_status_validity), or None if the
modem doesn’t report it.
With Some(false) the state is unknown, even if it is
CardState::ABSENT.
upin: PinInfoUniversal PIN.
error_code: CardErrorCodeReason the card is not usable.
apps: Items<App>Applications on the card. Empty if the slot has no card.
Trait Implementations§
impl Eq for Card
impl StructuralPartialEq for Card
Auto Trait Implementations§
impl !Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnsafeUnpin for Card
impl UnwindSafe for Card
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