Enum linux_info::network::modem_manager::ModemState
source · #[repr(i32)]
pub enum ModemState {
Show 13 variants
Failed,
Unknown,
Initializing,
Locked,
Disabled,
Disabling,
Enabling,
Enabled,
Searching,
Registered,
Disconnecting,
Connecting,
Connected,
}Variants§
Failed
The modem is unusable.
Unknown
State unknown or not reportable.
Initializing
The modem is currently being initialized.
Locked
The modem needs to be unlocked.
Disabled
The modem is not enabled and is powered down.
Disabling
The modem is currently transitioning to the MM_MODEM_STATE_DISABLED state.
Enabling
The modem is currently transitioning to the MM_MODEM_STATE_ENABLED state.
Enabled
The modem is enabled and powered on but not registered with a network provider and not available for data connections.
Searching
The modem is searching for a network provider to register with.
Registered
The modem is registered with a network provider, and data connections and messaging may be available for use.
Disconnecting
The modem is disconnecting and deactivating the last active packet data bearer. This state will not be entered if more than one packet data bearer is active and one of the active bearers is deactivated.
Connecting
The modem is activating and connecting the first packet data bearer. Subsequent bearer activations when another bearer is already active do not cause this state to be entered.
Connected
One or more packet data bearers is active and connected.
Trait Implementations§
source§impl Clone for ModemState
impl Clone for ModemState
source§fn clone(&self) -> ModemState
fn clone(&self) -> ModemState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ModemState
impl Debug for ModemState
source§impl<'de> Deserialize<'de> for ModemState
impl<'de> Deserialize<'de> for ModemState
source§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>,
source§impl From<i32> for ModemState
impl From<i32> for ModemState
source§impl PartialEq<ModemState> for ModemState
impl PartialEq<ModemState> for ModemState
source§fn eq(&self, other: &ModemState) -> bool
fn eq(&self, other: &ModemState) -> bool
self and other values to be equal, and is used
by ==.