Struct power_monitor::BatteryData
source · pub struct BatteryData {
pub status: BatteryStatus,
pub percent: u32,
pub voltage: u32,
pub current: u32,
pub charge_counter: u32,
pub charge_full: u32,
}
Fields§
§status: BatteryStatus
§percent: u32
§voltage: u32
Battery voltage in microvolts.
current: u32
Battery current in microamps.
charge_counter: u32
Battery charge counter in microampere hours.
charge_full: u32
Battery full charge counter in microampere hours.
Trait Implementations§
source§impl Clone for BatteryData
impl Clone for BatteryData
source§fn clone(&self) -> BatteryData
fn clone(&self) -> BatteryData
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 BatteryData
impl Debug for BatteryData
impl Copy for BatteryData
Auto Trait Implementations§
impl RefUnwindSafe for BatteryData
impl Send for BatteryData
impl Sync for BatteryData
impl Unpin for BatteryData
impl UnwindSafe for BatteryData
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