Enum ModemPowerState
#[non_exhaustive]pub enum ModemPowerState {
Unknown,
Off,
Low,
On,
Other(u32),
}Expand description
The power 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.
Unknown
The power state is not known.
Off
The modem is off.
Low
The modem is in low-power mode.
On
The modem is on.
Other(u32)
A value that this version of the crate doesn’t know.
Implementations§
§impl ModemPowerState
impl ModemPowerState
Trait Implementations§
§impl Clone for ModemPowerState
impl Clone for ModemPowerState
§fn clone(&self) -> ModemPowerState
fn clone(&self) -> ModemPowerState
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 ModemPowerState
§impl Debug for ModemPowerState
impl Debug for ModemPowerState
§impl<'de> Deserialize<'de> for ModemPowerState
impl<'de> Deserialize<'de> for ModemPowerState
§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 ModemPowerState
§impl From<ModemPowerState> for u32
impl From<ModemPowerState> for u32
§fn from(__value: ModemPowerState) -> Self
fn from(__value: ModemPowerState) -> Self
Converts to this type from the input type.
§impl From<ModemPowerState> for Value<'static>
impl From<ModemPowerState> for Value<'static>
§fn from(__value: ModemPowerState) -> Self
fn from(__value: ModemPowerState) -> Self
Converts to this type from the input type.
§impl From<u32> for ModemPowerState
impl From<u32> for ModemPowerState
§impl Hash for ModemPowerState
impl Hash for ModemPowerState
§impl PartialEq for ModemPowerState
impl PartialEq for ModemPowerState
§impl Serialize for ModemPowerState
impl Serialize for ModemPowerState
impl StructuralPartialEq for ModemPowerState
§impl TryFrom<OwnedValue> for ModemPowerState
impl TryFrom<OwnedValue> for ModemPowerState
§impl<'__a> TryFrom<Value<'__a>> for ModemPowerState
impl<'__a> TryFrom<Value<'__a>> for ModemPowerState
§impl Type for ModemPowerState
impl Type for ModemPowerState
Auto Trait Implementations§
impl Freeze for ModemPowerState
impl RefUnwindSafe for ModemPowerState
impl Send for ModemPowerState
impl Sync for ModemPowerState
impl Unpin for ModemPowerState
impl UnsafeUnpin for ModemPowerState
impl UnwindSafe for ModemPowerState
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.