Struct CardStatus
pub struct CardStatus {
primary_gw: Option<AppIndex>,
primary_1x: Option<AppIndex>,
secondary_gw: Option<AppIndex>,
secondary_1x: Option<AppIndex>,
cards: Items<Card>,
validity: Bytes,
}Expand description
Card status (uim_card_status_type_v01).
Returned by GetCardStatus and part of a
StatusChange.
Fields§
§primary_gw: Option<AppIndex>§primary_1x: Option<AppIndex>§secondary_gw: Option<AppIndex>§secondary_1x: Option<AppIndex>§cards: Items<Card>§validity: Bytescard_status_validity, one byte per card. Empty if the modem doesn’t
report it.
Implementations§
§impl CardStatus
impl CardStatus
pub fn cards(&self) -> impl ExactSizeIterator<Item = Card>
pub fn cards(&self) -> impl ExactSizeIterator<Item = Card>
Returns one entry per card slot.
pub const fn primary_1x(&self) -> Option<AppIndex>
pub const fn primary_1x(&self) -> Option<AppIndex>
Returns the application index of the primary CDMA session.
pub const fn primary_gw(&self) -> Option<AppIndex>
pub const fn primary_gw(&self) -> Option<AppIndex>
Returns the application index of the primary GSM or UMTS session.
pub fn primary_gw_app(&self) -> Option<App>
pub fn primary_gw_app(&self) -> Option<App>
Returns the application of the primary GSM or UMTS session.
pub const fn secondary_1x(&self) -> Option<AppIndex>
pub const fn secondary_1x(&self) -> Option<AppIndex>
Returns the application index of the secondary CDMA session.
pub const fn secondary_gw(&self) -> Option<AppIndex>
pub const fn secondary_gw(&self) -> Option<AppIndex>
Returns the application index of the secondary GSM or UMTS session.
Trait Implementations§
§impl Clone for CardStatus
impl Clone for CardStatus
§fn clone(&self) -> CardStatus
fn clone(&self) -> CardStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for CardStatus
Shows the cards with Card::status_known and without the raw validity.
impl Debug for CardStatus
Shows the cards with Card::status_known and without the raw validity.
impl Eq for CardStatus
§impl PartialEq for CardStatus
impl PartialEq for CardStatus
impl StructuralPartialEq for CardStatus
§impl TryFrom<&Message> for CardStatus
impl TryFrom<&Message> for CardStatus
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
§fn try_from(message: &Message) -> Result<Self, DecodeError>
fn try_from(message: &Message) -> Result<Self, DecodeError>
Performs the conversion.
Auto Trait Implementations§
impl !Freeze for CardStatus
impl RefUnwindSafe for CardStatus
impl Send for CardStatus
impl Sync for CardStatus
impl Unpin for CardStatus
impl UnsafeUnpin for CardStatus
impl UnwindSafe for CardStatus
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