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
sourceimpl Clone for ModemState
impl Clone for ModemState
sourcefn clone(&self) -> ModemState
fn clone(&self) -> ModemState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ModemState
impl Debug for ModemState
sourceimpl<'de> Deserialize<'de> for ModemState
impl<'de> Deserialize<'de> for ModemState
sourcefn 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
sourceimpl From<i32> for ModemState
impl From<i32> for ModemState
sourceimpl PartialEq<ModemState> for ModemState
impl PartialEq<ModemState> for ModemState
sourceimpl Serialize for ModemState
impl Serialize for ModemState
impl Copy for ModemState
impl Eq for ModemState
impl StructuralEq for ModemState
impl StructuralPartialEq for ModemState
Auto Trait Implementations
impl RefUnwindSafe for ModemState
impl Send for ModemState
impl Sync for ModemState
impl Unpin for ModemState
impl UnwindSafe for ModemState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more