pub enum BatteryChargeState {
Discharging = 0,
Charging = 1,
Charged = 2,
}Expand description
The battery charge-state enumeration.
Variants§
Discharging = 0
BATTERY_CHARGE_STATE_DISCHARGING
Charging = 1
BATTERY_CHARGE_STATE_CHARGING
Charged = 2
BATTERY_CHARGE_STATE_CHARGED
Implementations§
Trait Implementations§
Source§impl Clone for BatteryChargeState
impl Clone for BatteryChargeState
Source§fn clone(&self) -> BatteryChargeState
fn clone(&self) -> BatteryChargeState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatteryChargeState
impl Debug for BatteryChargeState
Source§impl PartialEq for BatteryChargeState
impl PartialEq for BatteryChargeState
impl Copy for BatteryChargeState
impl Eq for BatteryChargeState
impl StructuralPartialEq for BatteryChargeState
Auto Trait Implementations§
impl Freeze for BatteryChargeState
impl RefUnwindSafe for BatteryChargeState
impl Send for BatteryChargeState
impl Sync for BatteryChargeState
impl Unpin for BatteryChargeState
impl UnwindSafe for BatteryChargeState
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)