[][src]Struct macsmc::BatteryInfo

pub struct BatteryInfo {
    pub battery_powered: bool,
    pub charging: bool,
    pub ac_present: bool,
    pub health_ok: bool,
    pub temperature_max: Celsius,
    pub temperature_1: Celsius,
    pub temperature_2: Celsius,
}

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]

impl Copy for BatteryInfo[src]

impl Debug for BatteryInfo[src]

impl PartialEq<BatteryInfo> for BatteryInfo[src]

impl StructuralPartialEq for BatteryInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.