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