#[repr(C)]
pub struct SYSTEM_POWER_POLICY {
Show 28 fields pub Revision: u32, pub PowerButton: POWER_ACTION_POLICY, pub SleepButton: POWER_ACTION_POLICY, pub LidClose: POWER_ACTION_POLICY, pub LidOpenWake: SYSTEM_POWER_STATE, pub Reserved: u32, pub Idle: POWER_ACTION_POLICY, pub IdleTimeout: u32, pub IdleSensitivity: u8, pub DynamicThrottle: u8, pub Spare2: [u8; 2], pub MinSleep: SYSTEM_POWER_STATE, pub MaxSleep: SYSTEM_POWER_STATE, pub ReducedLatencySleep: SYSTEM_POWER_STATE, pub WinLogonFlags: u32, pub Spare3: u32, pub DozeS4Timeout: u32, pub BroadcastCapacityResolution: u32, pub DischargePolicy: [SYSTEM_POWER_LEVEL; 4], pub VideoTimeout: u32, pub VideoDimDisplay: BOOLEAN, pub VideoReserved: [u32; 3], pub SpindownTimeout: u32, pub OptimizeForPower: BOOLEAN, pub FanThrottleTolerance: u8, pub ForcedThrottle: u8, pub MinThrottle: u8, pub OverThrottled: POWER_ACTION_POLICY,
}
Expand description

Required features: ‘Win32_System_Power’, ‘Win32_Foundation’

Fields

Revision: u32PowerButton: POWER_ACTION_POLICYSleepButton: POWER_ACTION_POLICYLidClose: POWER_ACTION_POLICYLidOpenWake: SYSTEM_POWER_STATEReserved: u32Idle: POWER_ACTION_POLICYIdleTimeout: u32IdleSensitivity: u8DynamicThrottle: u8Spare2: [u8; 2]MinSleep: SYSTEM_POWER_STATEMaxSleep: SYSTEM_POWER_STATEReducedLatencySleep: SYSTEM_POWER_STATEWinLogonFlags: u32Spare3: u32DozeS4Timeout: u32BroadcastCapacityResolution: u32DischargePolicy: [SYSTEM_POWER_LEVEL; 4]VideoTimeout: u32VideoDimDisplay: BOOLEANVideoReserved: [u32; 3]SpindownTimeout: u32OptimizeForPower: BOOLEANFanThrottleTolerance: u8ForcedThrottle: u8MinThrottle: u8OverThrottled: POWER_ACTION_POLICY

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.