Enum linux_info::network::modem_manager::ModemState
source · #[non_exhaustive]#[repr(i32)]pub enum ModemState {
Show 13 variants
Failed = -1,
Unknown = 0,
Initializing = 1,
Locked = 2,
Disabled = 3,
Disabling = 4,
Enabling = 5,
Enabled = 6,
Searching = 7,
Registered = 8,
Disconnecting = 9,
Connecting = 10,
Connected = 11,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Failed = -1
The modem is unusable.
Unknown = 0
State unknown or not reportable.
Initializing = 1
The modem is currently being initialized.
Locked = 2
The modem needs to be unlocked.
Disabled = 3
The modem is not enabled and is powered down.
Disabling = 4
The modem is currently transitioning to the MM_MODEM_STATE_DISABLED state.
Enabling = 5
The modem is currently transitioning to the MM_MODEM_STATE_ENABLED state.
Enabled = 6
The modem is enabled and powered on but not registered with a network provider and not available for data connections.
Searching = 7
The modem is searching for a network provider to register with.
Registered = 8
The modem is registered with a network provider, and data connections and messaging may be available for use.
Disconnecting = 9
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 = 10
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 = 11
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 Hash for ModemState
impl Hash for ModemState
source§impl Ord for ModemState
impl Ord for ModemState
source§fn cmp(&self, other: &ModemState) -> Ordering
fn cmp(&self, other: &ModemState) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ModemState
impl PartialEq 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 ==.source§impl PartialOrd for ModemState
impl PartialOrd for ModemState
source§fn partial_cmp(&self, other: &ModemState) -> Option<Ordering>
fn partial_cmp(&self, other: &ModemState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more