Enum ModemStateFailedReason
#[non_exhaustive]pub enum ModemStateFailedReason {
None,
Unknown,
SimMissing,
SimError,
UnknownCapabilities,
EsimWithoutProfiles,
Other(u32),
}Expand description
The reason for the failed state of a modem.
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.
None
The modem has not failed.
Unknown
The reason is not known.
SimMissing
No SIM is inserted.
SimError
The SIM reports an error.
UnknownCapabilities
The capabilities of the modem are not known.
Added in ModemManager 1.20.
EsimWithoutProfiles
The eSIM has no profiles.
Added in ModemManager 1.20.
Other(u32)
A value that this version of the crate doesn’t know.
Implementations§
Trait Implementations§
§impl Clone for ModemStateFailedReason
impl Clone for ModemStateFailedReason
§fn clone(&self) -> ModemStateFailedReason
fn clone(&self) -> ModemStateFailedReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModemStateFailedReason
§impl Debug for ModemStateFailedReason
impl Debug for ModemStateFailedReason
§impl<'de> Deserialize<'de> for ModemStateFailedReason
impl<'de> Deserialize<'de> for ModemStateFailedReason
§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 ModemStateFailedReason
§impl From<ModemStateFailedReason> for u32
impl From<ModemStateFailedReason> for u32
§fn from(__value: ModemStateFailedReason) -> Self
fn from(__value: ModemStateFailedReason) -> Self
Converts to this type from the input type.
§impl From<ModemStateFailedReason> for Value<'static>
impl From<ModemStateFailedReason> for Value<'static>
§fn from(__value: ModemStateFailedReason) -> Self
fn from(__value: ModemStateFailedReason) -> Self
Converts to this type from the input type.
§impl From<u32> for ModemStateFailedReason
impl From<u32> for ModemStateFailedReason
§impl Hash for ModemStateFailedReason
impl Hash for ModemStateFailedReason
§impl PartialEq for ModemStateFailedReason
impl PartialEq for ModemStateFailedReason
§impl Serialize for ModemStateFailedReason
impl Serialize for ModemStateFailedReason
impl StructuralPartialEq for ModemStateFailedReason
§impl TryFrom<OwnedValue> for ModemStateFailedReason
impl TryFrom<OwnedValue> for ModemStateFailedReason
§impl<'__a> TryFrom<Value<'__a>> for ModemStateFailedReason
impl<'__a> TryFrom<Value<'__a>> for ModemStateFailedReason
§impl Type for ModemStateFailedReason
impl Type for ModemStateFailedReason
Auto Trait Implementations§
impl Freeze for ModemStateFailedReason
impl RefUnwindSafe for ModemStateFailedReason
impl Send for ModemStateFailedReason
impl Sync for ModemStateFailedReason
impl Unpin for ModemStateFailedReason
impl UnsafeUnpin for ModemStateFailedReason
impl UnwindSafe for ModemStateFailedReason
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.