Enum winsafe::PowerSetting
source · 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),
}
Available on crate feature
kernel
only.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 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