Skip to main content

SIMState

Enum SIMState 

Source
pub enum SIMState {
Show 16 variants Ready = 1, PinRequired = 2, PukRequired = 3, PhoneToSimPinRequired = 4, PhoneToFirstSimPinRequired = 5, PhoneToFirstSimPukRequired = 6, Pin2Required = 7, Puk2Required = 8, NetworkPinRequired = 9, NetworkPukRequired = 10, NetworkSubsetPinRequired = 11, NetworkSubsetPukRequired = 12, ServiceProviderPinRequired = 13, ServiceProviderPukRequired = 14, CorporateSimRequired = 15, CorporatePukRequired = 16,
}
Expand description

The possible states that the SIM card can be in.

Variants§

§

Ready = 1

MT is not waiting for any password.

§

PinRequired = 2

MT is waiting for the SIM PIN to be given.

§

PukRequired = 3

MT is waiting for the SIM PUK to be given.

§

PhoneToSimPinRequired = 4

MT is waiting for the phone to SIM card password to be given.

§

PhoneToFirstSimPinRequired = 5

MT is waiting for the phone-to-very first SIM card password to be given.

§

PhoneToFirstSimPukRequired = 6

MT is waiting for the phone-to-very first SIM card unblocking password to be given.

§

Pin2Required = 7

MT is waiting for theSIM PIN2 to be given (this is recommended to be returned only when the last executed command resulted in PIN2 authentication failure (i.e. +CME ERROR: 17); if PIN2 is not entered right after the failure, it is recommended that MT does not block its operation).

§

Puk2Required = 8

MT is waiting for the SIM PUK2 to be given (this < code> is recommended to be returned only when the last executed command resulted in PUK2 authentication failure (i.e. +CME ERROR: 18); if PUK2 and new PIN2 are not entered right after the failure, it is recommended that MT does not block its operation).

§

NetworkPinRequired = 9

MT is waiting for the network personalisation password to be given.

§

NetworkPukRequired = 10

MT is waiting for the network personalisation unblocking password to be given.

§

NetworkSubsetPinRequired = 11

MT is waiting for the network subset personalization password to be given.

§

NetworkSubsetPukRequired = 12

MT is waiting for the network subset personalization unblocking password to be given.

§

ServiceProviderPinRequired = 13

MT is waiting for the service provider personalization password to be given.

§

ServiceProviderPukRequired = 14

MT is waiting for service provider personalisation unblocking password to be given.

§

CorporateSimRequired = 15

MT is waiting for the corporate personalisation password to be given.

§

CorporatePukRequired = 16

MT is waiting for the corporate personalisation unblocking password to be given.

Trait Implementations§

Source§

impl AtatLen for SIMState

Source§

impl Clone for SIMState

Source§

fn clone(&self) -> SIMState

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'de> Deserialize<'de> for SIMState

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for SIMState

Source§

fn eq(&self, other: &SIMState) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SIMState

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SIMState

Source§

impl TryFrom<u8> for SIMState

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.