#[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: DWORD
Trait Implementations
sourceimpl Clone for SYSTEM_BATTERY_STATE
impl Clone for SYSTEM_BATTERY_STATE
sourcefn clone(&self) -> SYSTEM_BATTERY_STATE
fn clone(&self) -> SYSTEM_BATTERY_STATE
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
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