Struct windows_sys::Win32::System::Power::GLOBAL_USER_POWER_POLICY
[−]#[repr(C)]pub struct GLOBAL_USER_POWER_POLICY {
pub Revision: u32,
pub PowerButtonAc: POWER_ACTION_POLICY,
pub PowerButtonDc: POWER_ACTION_POLICY,
pub SleepButtonAc: POWER_ACTION_POLICY,
pub SleepButtonDc: POWER_ACTION_POLICY,
pub LidCloseAc: POWER_ACTION_POLICY,
pub LidCloseDc: POWER_ACTION_POLICY,
pub DischargePolicy: [SYSTEM_POWER_LEVEL; 4],
pub GlobalFlags: u32,
}Expand description
Required features: "Win32_System_Power", "Win32_Foundation"
Fields
Revision: u32PowerButtonAc: POWER_ACTION_POLICYPowerButtonDc: POWER_ACTION_POLICYSleepButtonAc: POWER_ACTION_POLICYSleepButtonDc: POWER_ACTION_POLICYLidCloseAc: POWER_ACTION_POLICYLidCloseDc: POWER_ACTION_POLICYDischargePolicy: [SYSTEM_POWER_LEVEL; 4]GlobalFlags: u32Trait Implementations
impl Clone for GLOBAL_USER_POWER_POLICY
impl Clone for GLOBAL_USER_POWER_POLICY
impl Copy for GLOBAL_USER_POWER_POLICY
Auto Trait Implementations
impl RefUnwindSafe for GLOBAL_USER_POWER_POLICY
impl Send for GLOBAL_USER_POWER_POLICY
impl Sync for GLOBAL_USER_POWER_POLICY
impl Unpin for GLOBAL_USER_POWER_POLICY
impl UnwindSafe for GLOBAL_USER_POWER_POLICY
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more