#[repr(C)]pub struct _PROCESSOR_POWER_POLICY {
pub Revision: DWORD,
pub DynamicThrottle: BYTE,
pub Spare: [BYTE; 3],
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
pub PolicyCount: DWORD,
pub Policy: [PROCESSOR_POWER_POLICY_INFO; 3],
}Fields§
§Revision: DWORD§DynamicThrottle: BYTE§Spare: [BYTE; 3]§_bitfield_align_1: [u32; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>§PolicyCount: DWORD§Policy: [PROCESSOR_POWER_POLICY_INFO; 3]Implementations§
Source§impl _PROCESSOR_POWER_POLICY
impl _PROCESSOR_POWER_POLICY
pub fn DisableCStates(&self) -> DWORD
pub fn set_DisableCStates(&mut self, val: DWORD)
pub unsafe fn DisableCStates_raw(this: *const Self) -> DWORD
pub unsafe fn set_DisableCStates_raw(this: *mut Self, val: DWORD)
pub fn Reserved(&self) -> DWORD
pub fn set_Reserved(&mut self, val: DWORD)
pub unsafe fn Reserved_raw(this: *const Self) -> DWORD
pub unsafe fn set_Reserved_raw(this: *mut Self, val: DWORD)
pub fn new_bitfield_1( DisableCStates: DWORD, Reserved: DWORD, ) -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations§
Source§impl Clone for _PROCESSOR_POWER_POLICY
impl Clone for _PROCESSOR_POWER_POLICY
Source§fn clone(&self) -> _PROCESSOR_POWER_POLICY
fn clone(&self) -> _PROCESSOR_POWER_POLICY
Returns a duplicate 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 moreSource§impl Debug for _PROCESSOR_POWER_POLICY
impl Debug for _PROCESSOR_POWER_POLICY
impl Copy for _PROCESSOR_POWER_POLICY
Auto Trait Implementations§
impl Freeze for _PROCESSOR_POWER_POLICY
impl RefUnwindSafe for _PROCESSOR_POWER_POLICY
impl Send for _PROCESSOR_POWER_POLICY
impl Sync for _PROCESSOR_POWER_POLICY
impl Unpin for _PROCESSOR_POWER_POLICY
impl UnsafeUnpin for _PROCESSOR_POWER_POLICY
impl UnwindSafe for _PROCESSOR_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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more