pub enum BatteryState {
Charging,
Charged,
Discharging,
}Expand description
Controls the battery state that is shown in the status bar.
Variants§
Charging
Indicates that the battery is charging.
Charged
Indicates that the battery is fully charged.
Discharging
Indicates that the battery is discharging (i.e. disconnected from an external power source).
Trait Implementations§
Source§impl Clone for BatteryState
impl Clone for BatteryState
Source§fn clone(&self) -> BatteryState
fn clone(&self) -> BatteryState
Returns a duplicate 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 PartialEq for BatteryState
impl PartialEq for BatteryState
impl Eq for BatteryState
impl StructuralPartialEq for BatteryState
Auto Trait Implementations§
impl Freeze for BatteryState
impl RefUnwindSafe for BatteryState
impl Send for BatteryState
impl Sync for BatteryState
impl Unpin 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