Struct windows_sys::Win32::System::Power::USER_POWER_POLICY[−]

#[repr(C)]
pub struct USER_POWER_POLICY {
Show 22 fields pub Revision: u32, pub IdleAc: POWER_ACTION_POLICY, pub IdleDc: POWER_ACTION_POLICY, pub IdleTimeoutAc: u32, pub IdleTimeoutDc: u32, pub IdleSensitivityAc: u8, pub IdleSensitivityDc: u8, pub ThrottlePolicyAc: u8, pub ThrottlePolicyDc: u8, pub MaxSleepAc: SYSTEM_POWER_STATE, pub MaxSleepDc: SYSTEM_POWER_STATE, pub Reserved: [u32; 2], pub VideoTimeoutAc: u32, pub VideoTimeoutDc: u32, pub SpindownTimeoutAc: u32, pub SpindownTimeoutDc: u32, pub OptimizeForPowerAc: BOOLEAN, pub OptimizeForPowerDc: BOOLEAN, pub FanThrottleToleranceAc: u8, pub FanThrottleToleranceDc: u8, pub ForcedThrottleAc: u8, pub ForcedThrottleDc: u8,
}
Expand description

Required features: ‘Win32_System_Power’, ‘Win32_Foundation’

Fields

Revision: u32IdleAc: POWER_ACTION_POLICYIdleDc: POWER_ACTION_POLICYIdleTimeoutAc: u32IdleTimeoutDc: u32IdleSensitivityAc: u8IdleSensitivityDc: u8ThrottlePolicyAc: u8ThrottlePolicyDc: u8MaxSleepAc: SYSTEM_POWER_STATEMaxSleepDc: SYSTEM_POWER_STATEReserved: [u32; 2]VideoTimeoutAc: u32VideoTimeoutDc: u32SpindownTimeoutAc: u32SpindownTimeoutDc: u32OptimizeForPowerAc: BOOLEANOptimizeForPowerDc: BOOLEANFanThrottleToleranceAc: u8FanThrottleToleranceDc: u8ForcedThrottleAc: u8ForcedThrottleDc: u8

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.