Struct windows_sys::System::Power::BatteryStatus
[−]#[repr(transparent)]pub struct BatteryStatus(pub i32);
Expand description
Required features: "System_Power"
Tuple Fields
0: i32
Implementations
impl BatteryStatus
impl BatteryStatus
pub const NotPresent: Self = Self(0i32)
pub const Discharging: Self = Self(1i32)
pub const Idle: Self = Self(2i32)
pub const Charging: Self = Self(3i32)
Trait Implementations
impl Clone for BatteryStatus
impl Clone for BatteryStatus
impl Copy for BatteryStatus
Auto Trait Implementations
impl RefUnwindSafe for BatteryStatus
impl Send for BatteryStatus
impl Sync for BatteryStatus
impl Unpin for BatteryStatus
impl UnwindSafe for BatteryStatus
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