pub struct BatteryInfo {
pub is_charging: Option<bool>,
pub is_ac_plugged: Option<bool>,
pub charging_start_threshold: Option<i32>,
pub charging_stop_threshold: Option<i32>,
pub battery_level: Option<u8>,
pub power_consumption: Option<f32>,
}Fields§
§is_charging: Option<bool>§is_ac_plugged: Option<bool>§charging_start_threshold: Option<i32>§charging_stop_threshold: Option<i32>§battery_level: Option<u8>§power_consumption: Option<f32>Trait Implementations§
Source§impl Clone for BatteryInfo
impl Clone for BatteryInfo
Source§fn clone(&self) -> BatteryInfo
fn clone(&self) -> BatteryInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BatteryInfo
impl RefUnwindSafe for BatteryInfo
impl Send for BatteryInfo
impl Sync for BatteryInfo
impl Unpin for BatteryInfo
impl UnsafeUnpin for BatteryInfo
impl UnwindSafe for BatteryInfo
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