Struct winapi::um::winnt::SYSTEM_BATTERY_STATE
source · #[repr(C)]pub struct SYSTEM_BATTERY_STATE {
pub AcOnLine: BOOLEAN,
pub BatteryPresent: BOOLEAN,
pub Charging: BOOLEAN,
pub Discharging: BOOLEAN,
pub Spare1: [BOOLEAN; 3],
pub Tag: BYTE,
pub MaxCapacity: DWORD,
pub RemainingCapacity: DWORD,
pub Rate: DWORD,
pub EstimatedTime: DWORD,
pub DefaultAlert1: DWORD,
pub DefaultAlert2: DWORD,
}Fields§
§AcOnLine: BOOLEAN§BatteryPresent: BOOLEAN§Charging: BOOLEAN§Discharging: BOOLEAN§Spare1: [BOOLEAN; 3]§Tag: BYTE§MaxCapacity: DWORD§RemainingCapacity: DWORD§Rate: DWORD§EstimatedTime: DWORD§DefaultAlert1: DWORD§DefaultAlert2: DWORDTrait Implementations§
source§impl Clone for SYSTEM_BATTERY_STATE
impl Clone for SYSTEM_BATTERY_STATE
source§fn clone(&self) -> SYSTEM_BATTERY_STATE
fn clone(&self) -> SYSTEM_BATTERY_STATE
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 Default for SYSTEM_BATTERY_STATE
impl Default for SYSTEM_BATTERY_STATE
source§fn default() -> SYSTEM_BATTERY_STATE
fn default() -> SYSTEM_BATTERY_STATE
Returns the “default value” for a type. Read more