[][src]Struct intel_pstate::PState

pub struct PState { /* fields omitted */ }

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

impl Send for PState

impl Sync for PState

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]