Enum battery_client::BatteryLevel
source · pub enum BatteryLevel {
Normal(u8),
Warning(u8),
Critical(u8),
FullCharge,
}
Expand description
The current battery level, represented as an integer level in the range [MIN_BATTERY_LEVEL, MAX_BATTERY_LEVEL].
Variants§
Implementations§
Trait Implementations§
source§impl Clone for BatteryLevel
impl Clone for BatteryLevel
source§fn clone(&self) -> BatteryLevel
fn clone(&self) -> BatteryLevel
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 BatteryLevel
impl Debug for BatteryLevel
source§impl PartialEq for BatteryLevel
impl PartialEq for BatteryLevel
source§fn eq(&self, other: &BatteryLevel) -> bool
fn eq(&self, other: &BatteryLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BatteryLevel
Auto Trait Implementations§
impl Freeze for BatteryLevel
impl RefUnwindSafe for BatteryLevel
impl Send for BatteryLevel
impl Sync for BatteryLevel
impl Unpin for BatteryLevel
impl UnwindSafe for BatteryLevel
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)