Struct windows::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,
}
Fields§
§Revision: u32
§PowerButtonAc: POWER_ACTION_POLICY
§PowerButtonDc: POWER_ACTION_POLICY
§SleepButtonAc: POWER_ACTION_POLICY
§SleepButtonDc: POWER_ACTION_POLICY
§LidCloseAc: POWER_ACTION_POLICY
§LidCloseDc: POWER_ACTION_POLICY
§DischargePolicy: [SYSTEM_POWER_LEVEL; 4]
§GlobalFlags: u32
Trait Implementations§
§impl Clone for GLOBAL_USER_POWER_POLICY
impl Clone for GLOBAL_USER_POWER_POLICY
§fn clone(&self) -> GLOBAL_USER_POWER_POLICY
fn clone(&self) -> GLOBAL_USER_POWER_POLICY
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for GLOBAL_USER_POWER_POLICY
impl Debug for GLOBAL_USER_POWER_POLICY
§impl Default for GLOBAL_USER_POWER_POLICY
impl Default for GLOBAL_USER_POWER_POLICY
§impl PartialEq for GLOBAL_USER_POWER_POLICY
impl PartialEq for GLOBAL_USER_POWER_POLICY
§fn eq(&self, other: &GLOBAL_USER_POWER_POLICY) -> bool
fn eq(&self, other: &GLOBAL_USER_POWER_POLICY) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for GLOBAL_USER_POWER_POLICY
impl Eq for GLOBAL_USER_POWER_POLICY
impl StructuralPartialEq for GLOBAL_USER_POWER_POLICY
Auto Trait Implementations§
impl Freeze for GLOBAL_USER_POWER_POLICY
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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)