#[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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.