Enum ModemLock
#[non_exhaustive]pub enum ModemLock {
Show 18 variants
Unknown,
None,
SimPin,
SimPin2,
SimPuk,
SimPuk2,
PhSpPin,
PhSpPuk,
PhNetPin,
PhNetPuk,
PhSimPin,
PhCorpPin,
PhCorpPuk,
PhFsimPin,
PhFsimPuk,
PhNetsubPin,
PhNetsubPuk,
Other(u32),
}Expand description
The lock that a modem waits for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
The lock is not known.
None
The modem has no lock.
SimPin
The SIM PIN is required.
SimPin2
The SIM PIN2 is required.
SimPuk
The SIM PUK is required.
SimPuk2
The SIM PUK2 is required.
PhSpPin
The service provider PIN is required.
PhSpPuk
The service provider PUK is required.
PhNetPin
The network PIN is required.
PhNetPuk
The network PUK is required.
PhSimPin
The PIN that ties the SIM to the device is required.
PhCorpPin
The corporate PIN is required.
PhCorpPuk
The corporate PUK is required.
PhFsimPin
The PIN for the first inserted SIM is required.
PhFsimPuk
The PUK for the first inserted SIM is required.
PhNetsubPin
The network subset PIN is required.
PhNetsubPuk
The network subset PUK is required.
Other(u32)
A value that this version of the crate doesn’t know.
Implementations§
Trait Implementations§
impl Copy for ModemLock
§impl<'de> Deserialize<'de> for ModemLock
impl<'de> Deserialize<'de> for ModemLock
§fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModemLock
impl StructuralPartialEq for ModemLock
Auto Trait Implementations§
impl Freeze for ModemLock
impl RefUnwindSafe for ModemLock
impl Send for ModemLock
impl Sync for ModemLock
impl Unpin for ModemLock
impl UnsafeUnpin for ModemLock
impl UnwindSafe for ModemLock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.