Struct windows::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,
}
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
§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 more§impl Debug for SYSTEM_BATTERY_STATE
impl Debug for SYSTEM_BATTERY_STATE
§impl Default for SYSTEM_BATTERY_STATE
impl Default for SYSTEM_BATTERY_STATE
§impl PartialEq for SYSTEM_BATTERY_STATE
impl PartialEq for SYSTEM_BATTERY_STATE
§fn eq(&self, other: &SYSTEM_BATTERY_STATE) -> bool
fn eq(&self, other: &SYSTEM_BATTERY_STATE) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SYSTEM_BATTERY_STATE
impl Eq for SYSTEM_BATTERY_STATE
impl StructuralPartialEq for SYSTEM_BATTERY_STATE
Auto Trait Implementations§
impl Freeze for SYSTEM_BATTERY_STATE
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)