Struct windows_sys::Win32::System::Power::SYSTEM_BATTERY_STATE
#[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: u8,
pub MaxCapacity: u32,
pub RemainingCapacity: u32,
pub Rate: u32,
pub EstimatedTime: u32,
pub DefaultAlert1: u32,
pub DefaultAlert2: u32,
}
Expand description
Required features: "Win32_Foundation"
Fields§
§AcOnLine: BOOLEAN
§BatteryPresent: BOOLEAN
§Charging: BOOLEAN
§Discharging: BOOLEAN
§Spare1: [BOOLEAN; 3]
§Tag: u8
§MaxCapacity: u32
§RemainingCapacity: u32
§Rate: u32
§EstimatedTime: u32
§DefaultAlert1: u32
§DefaultAlert2: u32
Trait Implementations§
§impl Clone for SYSTEM_BATTERY_STATE
impl Clone for SYSTEM_BATTERY_STATE
impl Copy for SYSTEM_BATTERY_STATE
Auto Trait Implementations§
impl RefUnwindSafe for SYSTEM_BATTERY_STATE
impl Send for SYSTEM_BATTERY_STATE
impl Sync for SYSTEM_BATTERY_STATE
impl Unpin for SYSTEM_BATTERY_STATE
impl UnwindSafe for SYSTEM_BATTERY_STATE
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