Struct intel_pstate::PStateValues
source · [−]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
sourceimpl 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
sourceimpl Clone for PStateValues
impl Clone for PStateValues
sourcefn clone(&self) -> PStateValues
fn clone(&self) -> PStateValues
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PStateValues
impl Debug for PStateValues
sourceimpl Default for PStateValues
impl Default for PStateValues
sourceimpl Hash for PStateValues
impl Hash for PStateValues
sourceimpl PartialEq<PStateValues> for PStateValues
impl PartialEq<PStateValues> for PStateValues
sourcefn eq(&self, other: &PStateValues) -> bool
fn eq(&self, other: &PStateValues) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PStateValues) -> bool
fn ne(&self, other: &PStateValues) -> bool
This method tests for !=
.
impl Copy for PStateValues
impl Eq for PStateValues
impl StructuralEq for PStateValues
impl StructuralPartialEq for PStateValues
Auto Trait Implementations
impl RefUnwindSafe for PStateValues
impl Send for PStateValues
impl Sync for PStateValues
impl Unpin for PStateValues
impl UnwindSafe for PStateValues
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more