Enum upower_dbus::BatteryLevel
source · #[repr(u32)]
pub enum BatteryLevel {
Unknown,
None,
Low,
Critical,
Normal,
High,
Full,
}
Variants§
Trait Implementations§
source§impl Clone for BatteryLevel
impl Clone for BatteryLevel
source§fn clone(&self) -> BatteryLevel
fn clone(&self) -> BatteryLevel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BatteryLevel
impl Debug for BatteryLevel
source§impl<'de> Deserialize<'de> for BatteryLevel
impl<'de> Deserialize<'de> for BatteryLevel
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<BatteryLevel> for OwnedValue
impl From<BatteryLevel> for OwnedValue
source§fn from(e: BatteryLevel) -> Self
fn from(e: BatteryLevel) -> Self
Converts to this type from the input type.
source§impl Hash for BatteryLevel
impl Hash for BatteryLevel
source§impl PartialEq<BatteryLevel> for BatteryLevel
impl PartialEq<BatteryLevel> for BatteryLevel
source§fn eq(&self, other: &BatteryLevel) -> bool
fn eq(&self, other: &BatteryLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.