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_System_Power", "Win32_Foundation"
Fields
AcOnLine: BOOLEANBatteryPresent: BOOLEANCharging: BOOLEANDischarging: BOOLEANSpare1: [BOOLEAN; 3]Tag: u8MaxCapacity: u32RemainingCapacity: u32Rate: u32EstimatedTime: u32DefaultAlert1: u32DefaultAlert2: u32Trait 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more