[−][src]Struct intel_pstate::PState
Handle for fetching and modifying Intel PState kernel parameters.
Note
- Currently, ony Linux is supported.
- Setting parameters will require root permissions.
Methods
impl PState
[src]
pub fn new() -> Result<PState, PStateError>
[src]
Attempt to fetch a handle to the Intel PState sysfs kernel instance.
pub fn min_perf_pct(&self) -> Result<u8, PStateError>
[src]
Get the minimum performance percent.
pub fn set_min_perf_pct(&self, min: u8) -> Result<(), PStateError>
[src]
Set the minimum performance percent.
pub fn max_perf_pct(&self) -> Result<u8, PStateError>
[src]
Get the maximum performance percent.
pub fn set_max_perf_pct(&self, max: u8) -> Result<(), PStateError>
[src]
Set the maximum performance percent.
pub fn no_turbo(&self) -> Result<bool, PStateError>
[src]
If true, this signifies that turbo is disabled.
pub fn set_no_turbo(&self, no_turbo: bool) -> Result<(), PStateError>
[src]
Set the no_turbo value; true
will disable turbo.
pub fn values(&self) -> Result<PStateValues, PStateError>
[src]
pub fn set_values(&self, values: PStateValues) -> Result<(), PStateError>
[src]
Set all values in the given config.
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,