#[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 duplicate 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 Debug for SYSTEM_BATTERY_STATE
impl Debug for SYSTEM_BATTERY_STATE
impl Copy 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 UnsafeUnpin 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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more