pub struct PState { /* private fields */ }
Expand description

Handle for fetching and modifying Intel PState kernel parameters.

Note

  • Currently, ony Linux is supported.
  • Setting parameters will require root permissions.

Implementations

Attempt to fetch a handle to the Intel PState sysfs kernel instance.

Get the status of HWP dynamic boost, if it is available.

Set the HWP dynamic boost status.

Get the minimum performance percent.

Set the minimum performance percent.

Get the maximum performance percent.

Set the maximum performance percent.

If true, this signifies that turbo is disabled.

Set the no_turbo value; true will disable turbo.

Get current PState values.

Set all values in the given config.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.