pub enum BatteryState {
Unknown,
Charging,
Discharging,
Empty,
FullyCharged,
PendingCharge,
PendingDischarge,
}Expand description
How a battery is doing, from UPower’s State.
Variants§
Unknown
Not known, or not a battery.
Charging
Charging.
Discharging
Running the machine.
Empty
Empty.
FullyCharged
Full, and on the charger.
PendingCharge
Waiting to charge.
PendingDischarge
Waiting to run the machine.
Trait Implementations§
Source§impl Clone for BatteryState
impl Clone for BatteryState
impl Copy for BatteryState
Source§impl Debug for BatteryState
impl Debug for BatteryState
Source§impl Default for BatteryState
impl Default for BatteryState
impl Eq for BatteryState
Source§impl PartialEq for BatteryState
impl PartialEq for BatteryState
impl StructuralPartialEq for BatteryState
Auto Trait Implementations§
impl Forget for BatteryState
impl Freeze for BatteryState
impl Move for BatteryState
impl RefUnwindSafe for BatteryState
impl Send for BatteryState
impl Sync for BatteryState
impl Unpin for BatteryState
impl UnsafeUnpin for BatteryState
impl UnwindSafe for BatteryState
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
Source§type NoneType = T
type NoneType = T
The type of the none-equivalent value that
NoneValue::null_value produces.Source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.