Enum upower_dbus::BatteryState
source · #[repr(u32)]
pub enum BatteryState {
Unknown,
Charging,
Discharging,
Empty,
FullyCharged,
PendingCharge,
PendingDischarge,
}
Variants§
Trait Implementations§
source§impl Clone for BatteryState
impl Clone for BatteryState
source§fn clone(&self) -> BatteryState
fn clone(&self) -> BatteryState
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 BatteryState
impl Debug for BatteryState
source§impl<'de> Deserialize<'de> for BatteryState
impl<'de> Deserialize<'de> for BatteryState
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<BatteryState> for OwnedValue
impl From<BatteryState> for OwnedValue
source§fn from(e: BatteryState) -> Self
fn from(e: BatteryState) -> Self
Converts to this type from the input type.
source§impl Hash for BatteryState
impl Hash for BatteryState
source§impl PartialEq<BatteryState> for BatteryState
impl PartialEq<BatteryState> for BatteryState
source§fn eq(&self, other: &BatteryState) -> bool
fn eq(&self, other: &BatteryState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.