[−][src]Struct macsmc::BatteryInfo
Various information about the battery in general.
Fields
battery_powered: bool
true
if the system is running on battery power
charging: bool
true
if the battery is currently being charged
ac_present: bool
true
if the system is plugged in
health_ok: bool
true
if the battery health is generally ok
temperature_max: Celsius
The highest measured temperature sensor
temperature_1: Celsius
The temperature of the first battery sensor
temperature_2: Celsius
The temperature of the second battery sensor
Trait Implementations
impl Clone for BatteryInfo
[src]
fn clone(&self) -> BatteryInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for BatteryInfo
[src]
impl Debug for BatteryInfo
[src]
impl PartialEq<BatteryInfo> for BatteryInfo
[src]
fn eq(&self, other: &BatteryInfo) -> bool
[src]
fn ne(&self, other: &BatteryInfo) -> bool
[src]
impl StructuralPartialEq for BatteryInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for BatteryInfo
impl Send for BatteryInfo
impl Sync for BatteryInfo
impl Unpin for BatteryInfo
impl UnwindSafe for BatteryInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,