Enum ModemState
#[non_exhaustive]pub enum ModemState {
Show 14 variants
Failed,
Unknown,
Initializing,
Locked,
Disabled,
Disabling,
Enabling,
Enabled,
Searching,
Registered,
Disconnecting,
Connecting,
Connected,
Other(i32),
}Expand description
The overall 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.
Failed
The modem is unusable.
Unknown
The state is not known.
Initializing
The modem is starting up.
Locked
The modem waits for a PIN or PUK.
Disabled
The radio is off.
Disabling
The modem is turning the radio off.
Enabling
The modem is turning the radio on.
Enabled
The radio is on but the modem is not registered.
Searching
The modem looks for a network.
Registered
The modem is registered with a network.
Disconnecting
A data connection is closing.
Connecting
A data connection is starting.
Connected
A data connection is active.
Other(i32)
A value that this version of the crate doesn’t know.
Implementations§
§impl ModemState
impl ModemState
Trait Implementations§
§impl Clone for ModemState
impl Clone for ModemState
§fn clone(&self) -> ModemState
fn clone(&self) -> ModemState
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 ModemState
§impl Debug for ModemState
impl Debug for ModemState
§impl<'de> Deserialize<'de> for ModemState
impl<'de> Deserialize<'de> for ModemState
§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 ModemState
§impl From<ModemState> for i32
impl From<ModemState> for i32
§fn from(__value: ModemState) -> Self
fn from(__value: ModemState) -> Self
Converts to this type from the input type.
§impl From<ModemState> for Value<'static>
impl From<ModemState> for Value<'static>
§fn from(__value: ModemState) -> Self
fn from(__value: ModemState) -> Self
Converts to this type from the input type.
§impl From<i32> for ModemState
impl From<i32> for ModemState
§impl Hash for ModemState
impl Hash for ModemState
§impl PartialEq for ModemState
impl PartialEq for ModemState
§impl Serialize for ModemState
impl Serialize for ModemState
impl StructuralPartialEq for ModemState
§impl TryFrom<OwnedValue> for ModemState
impl TryFrom<OwnedValue> for ModemState
§impl<'__a> TryFrom<Value<'__a>> for ModemState
impl<'__a> TryFrom<Value<'__a>> for ModemState
§impl Type for ModemState
impl Type for ModemState
Auto Trait Implementations§
impl Freeze for ModemState
impl RefUnwindSafe for ModemState
impl Send for ModemState
impl Sync for ModemState
impl Unpin for ModemState
impl UnsafeUnpin for ModemState
impl UnwindSafe for ModemState
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.