Struct windows::System::Power::PowerManager
pub struct PowerManager;
Implementations§
§impl PowerManager
impl PowerManager
pub fn EnergySaverStatus() -> Result<EnergySaverStatus>
pub fn EnergySaverStatusChanged<P0>(
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemoveEnergySaverStatusChanged( token: EventRegistrationToken, ) -> Result<()>
pub fn BatteryStatus() -> Result<BatteryStatus>
pub fn BatteryStatusChanged<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemoveBatteryStatusChanged(token: EventRegistrationToken) -> Result<()>
pub fn PowerSupplyStatus() -> Result<PowerSupplyStatus>
pub fn PowerSupplyStatusChanged<P0>(
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemovePowerSupplyStatusChanged( token: EventRegistrationToken, ) -> Result<()>
pub fn RemainingChargePercent() -> Result<i32>
pub fn RemainingChargePercentChanged<P0>(
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemoveRemainingChargePercentChanged( token: EventRegistrationToken, ) -> Result<()>
pub fn RemainingDischargeTime() -> Result<TimeSpan>
pub fn RemainingDischargeTimeChanged<P0>(
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemoveRemainingDischargeTimeChanged( token: EventRegistrationToken, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for PowerManager
impl RefUnwindSafe for PowerManager
impl Send for PowerManager
impl Sync for PowerManager
impl Unpin for PowerManager
impl UnwindSafe for PowerManager
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