pub struct PStateValues {
pub hwp_dynamic_boost: Option<bool>,
pub min_perf_pct: u8,
pub max_perf_pct: u8,
pub no_turbo: bool,
}
Expand description
A set of pstate values that was retrieved, or is to be set.
Fields§
§hwp_dynamic_boost: Option<bool>
§min_perf_pct: u8
§max_perf_pct: u8
§no_turbo: bool
Implementations§
Source§impl PStateValues
impl PStateValues
Sourcepub fn hwp_dynamic_boost(self, value: bool) -> Self
pub fn hwp_dynamic_boost(self, value: bool) -> Self
Sets the hwp_dynamic_boost
field of this struct.
Sourcepub fn min_perf_pct(self, value: u8) -> Self
pub fn min_perf_pct(self, value: u8) -> Self
Sets the min_perf_pct
field of this struct.
Sourcepub fn max_perf_pct(self, value: u8) -> Self
pub fn max_perf_pct(self, value: u8) -> Self
Sets the max_perf_pct
field of this struct.
Trait Implementations§
Source§impl Clone for PStateValues
impl Clone for PStateValues
Source§fn clone(&self) -> PStateValues
fn clone(&self) -> PStateValues
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 PStateValues
impl Debug for PStateValues
Source§impl Default for PStateValues
impl Default for PStateValues
Source§impl Hash for PStateValues
impl Hash for PStateValues
Source§impl PartialEq for PStateValues
impl PartialEq for PStateValues
impl Copy for PStateValues
impl Eq for PStateValues
impl StructuralPartialEq for PStateValues
Auto Trait Implementations§
impl Freeze for PStateValues
impl RefUnwindSafe for PStateValues
impl Send for PStateValues
impl Sync for PStateValues
impl Unpin for PStateValues
impl UnwindSafe for PStateValues
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