#[repr(u8)]pub enum PinState {
Ready = 0,
SimPin = 1,
SimPuk = 2,
SimPin2 = 3,
SimPuk2 = 4,
}Expand description
The PIN state of the modem (from AT+CPIN).
If the SIM is locked with a PIN, you must enter it before using the modem.
Variants§
Ready = 0
Ready - not pending for any password.
SimPin = 1
Waiting for a SIM PIN to be entered.
SimPuk = 2
Waiting for a SIM PUK to be given (i.e. the SIM PIN is blocked)
SimPin2 = 3
Waiting for a SIM PIN2 to be entered.
SimPuk2 = 4
Waiting for a SIM PUK2 to be given (i.e. the SIM PIN2 is blocked)
Trait Implementations§
Source§impl Fail for PinState
impl Fail for PinState
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreimpl Copy for PinState
impl Eq for PinState
impl StructuralPartialEq for PinState
Auto Trait Implementations§
impl Freeze for PinState
impl RefUnwindSafe for PinState
impl Send for PinState
impl Sync for PinState
impl Unpin for PinState
impl UnsafeUnpin for PinState
impl UnwindSafe for PinState
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