pub struct BatteryMeter { /* private fields */ }Expand description
Reads the batteries and smooths the charge or discharge rate between readings for the time left.
Implementations§
Source§impl BatteryMeter
impl BatteryMeter
Sourcepub fn read(&mut self, roots: &SysRoots) -> Option<BatteryStats>
pub fn read(&mut self, roots: &SysRoots) -> Option<BatteryStats>
Combined state of the system batteries, or None without any.
Trait Implementations§
Source§impl Debug for BatteryMeter
impl Debug for BatteryMeter
Auto Trait Implementations§
impl Freeze for BatteryMeter
impl RefUnwindSafe for BatteryMeter
impl Send for BatteryMeter
impl Sync for BatteryMeter
impl Unpin for BatteryMeter
impl UnsafeUnpin for BatteryMeter
impl UnwindSafe for BatteryMeter
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