Struct Client
pub struct Client {
handle: ClientHandle,
}Expand description
SIM client.
Fields§
§handle: ClientHandleImplementations§
§impl Client
impl Client
unsafe fn deinit_unchecked(&self) -> Result<()>
§impl Client
impl Client
pub fn get_imsi_for_app(&self, slot: SlotId, app: App) -> Result<String>
pub fn get_imsi_for_app(&self, slot: SlotId, app: App) -> Result<String>
Returns the IMSI of the SIM card in the specified slot and app.
pub fn get_imsi(&self, slot: SlotId) -> Result<String>
pub fn get_imsi(&self, slot: SlotId) -> Result<String>
Returns the first IMSI of the SIM card in the specified slot.
pub fn get_iccid(&self, slot: SlotId) -> Result<String>
pub fn get_iccid(&self, slot: SlotId) -> Result<String>
Returns the ICCID of the SIM card in the specified slot.
pub fn get_card_status(&self, slot: SlotId) -> Result<Option<CardStatusInfo>>
pub fn get_card_status(&self, slot: SlotId) -> Result<Option<CardStatusInfo>>
Returns the card status of the SIM card in the specified slot.
Returns None if the slot is empty.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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