pub struct Sim { /* private fields */ }
Available on crate feature
network
only.Implementations§
Source§impl Sim
impl Sim
Sourcepub fn identifier(&self) -> Result<String, Error>
pub fn identifier(&self) -> Result<String, Error>
The ICCID of the SIM card.
This may be available before the PIN has been entered depending on the device itself.
Sourcepub fn operator_name(&self) -> Result<String, Error>
pub fn operator_name(&self) -> Result<String, Error>
The name of the network operator, as given by the SIM card, if known.
Auto Trait Implementations§
impl Freeze for Sim
impl !RefUnwindSafe for Sim
impl !Send for Sim
impl !Sync for Sim
impl Unpin for Sim
impl !UnwindSafe for Sim
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