Struct windows::System::Power::ForegroundEnergyManager
pub struct ForegroundEnergyManager;
Implementations§
§impl ForegroundEnergyManager
impl ForegroundEnergyManager
pub fn LowUsageLevel() -> Result<u32>
pub fn NearMaxAcceptableUsageLevel() -> Result<u32>
pub fn MaxAcceptableUsageLevel() -> Result<u32>
pub fn ExcessiveUsageLevel() -> Result<u32>
pub fn RecentEnergyUsage() -> Result<u32>
pub fn RecentEnergyUsageLevel() -> Result<u32>
pub fn RecentEnergyUsageIncreased<P0>(
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemoveRecentEnergyUsageIncreased( token: EventRegistrationToken, ) -> Result<()>
pub fn RecentEnergyUsageReturnedToLow<P0>(
handler: P0,
) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemoveRecentEnergyUsageReturnedToLow( token: EventRegistrationToken, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for ForegroundEnergyManager
impl RefUnwindSafe for ForegroundEnergyManager
impl Send for ForegroundEnergyManager
impl Sync for ForegroundEnergyManager
impl Unpin for ForegroundEnergyManager
impl UnwindSafe for ForegroundEnergyManager
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