pub enum BatteryStateKind {
discharging,
full,
waiting,
charging,
empty,
}Expand description
The state of the battery unit.
Variants§
discharging
Stored energy is decreasing.
full
Unable to charge, and not discharging.
waiting
Neither charging nor discharging, but able to do so.
charging
Stored energy is increasing.
empty
Unable to discharge, and not charging.
Implementations§
Trait Implementations§
Source§impl Clone for BatteryStateKind
impl Clone for BatteryStateKind
Source§fn clone(&self) -> BatteryStateKind
fn clone(&self) -> BatteryStateKind
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 moreSource§impl Debug for BatteryStateKind
impl Debug for BatteryStateKind
Source§impl<'de> Deserialize<'de> for BatteryStateKind
impl<'de> Deserialize<'de> for BatteryStateKind
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 PartialEq for BatteryStateKind
impl PartialEq for BatteryStateKind
Source§impl Serialize for BatteryStateKind
impl Serialize for BatteryStateKind
impl StructuralPartialEq for BatteryStateKind
Auto Trait Implementations§
impl Freeze for BatteryStateKind
impl RefUnwindSafe for BatteryStateKind
impl Send for BatteryStateKind
impl Sync for BatteryStateKind
impl Unpin for BatteryStateKind
impl UnsafeUnpin for BatteryStateKind
impl UnwindSafe for BatteryStateKind
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