pub enum PowerSetting {
AcDcPowerSource(SYSTEM_POWER_CONDITION),
BatteryPercentageRemaining(u8),
ConsoleDisplayState(MONITOR_DISPLAY_STATE),
GlobalUserPresence(USER_ACTIVITY_PRESENCE),
IdleBackgroundTask,
MonitorPowerOn(bool),
PowerSavingStatus(bool),
PowerSchemePersonality(POWER_SAVINGS),
SessionDisplayStatus(MONITOR_DISPLAY_STATE),
SessionUserPresence(USER_ACTIVITY_PRESENCE),
LidSwitchStateChange(PowerSettingLid),
SystemAwayMode(PowerSettingAwayMode),
}Expand description
Variant parameter for:
Variants§
AcDcPowerSource(SYSTEM_POWER_CONDITION)
BatteryPercentageRemaining(u8)
ConsoleDisplayState(MONITOR_DISPLAY_STATE)
GlobalUserPresence(USER_ACTIVITY_PRESENCE)
IdleBackgroundTask
MonitorPowerOn(bool)
PowerSavingStatus(bool)
PowerSchemePersonality(POWER_SAVINGS)
SessionDisplayStatus(MONITOR_DISPLAY_STATE)
SessionUserPresence(USER_ACTIVITY_PRESENCE)
LidSwitchStateChange(PowerSettingLid)
SystemAwayMode(PowerSettingAwayMode)
Auto Trait Implementations§
impl Freeze for PowerSetting
impl RefUnwindSafe for PowerSetting
impl Send for PowerSetting
impl Sync for PowerSetting
impl Unpin for PowerSetting
impl UnsafeUnpin for PowerSetting
impl UnwindSafe for PowerSetting
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