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

Fields§

§Revision: DWORD§PowerButton: POWER_ACTION_POLICY§SleepButton: POWER_ACTION_POLICY§LidClose: POWER_ACTION_POLICY§LidOpenWake: SYSTEM_POWER_STATE§Reserved: DWORD§Idle: POWER_ACTION_POLICY§IdleTimeout: DWORD§IdleSensitivity: BYTE§DynamicThrottle: BYTE§Spare2: [BYTE; 2]§MinSleep: SYSTEM_POWER_STATE§MaxSleep: SYSTEM_POWER_STATE§ReducedLatencySleep: SYSTEM_POWER_STATE§WinLogonFlags: DWORD§Spare3: DWORD§DozeS4Timeout: DWORD§BroadcastCapacityResolution: DWORD§DischargePolicy: [SYSTEM_POWER_LEVEL; 4]§VideoTimeout: DWORD§VideoDimDisplay: BOOLEAN§VideoReserved: [DWORD; 3]§SpindownTimeout: DWORD§OptimizeForPower: BOOLEAN§FanThrottleTolerance: BYTE§ForcedThrottle: BYTE§MinThrottle: BYTE§OverThrottled: POWER_ACTION_POLICY

Trait Implementations§

source§

impl Clone for SYSTEM_POWER_POLICY

source§

fn clone(&self) -> SYSTEM_POWER_POLICY

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for SYSTEM_POWER_POLICY

source§

fn default() -> SYSTEM_POWER_POLICY

Returns the “default value” for a type. Read more
source§

impl Copy for SYSTEM_POWER_POLICY

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.