pub struct CpuFreqConfig {
pub policy_path: PathBuf,
pub default_min: Option<String>,
pub default_max: Option<String>,
pub saving_min: Option<String>,
pub saving_max: Option<String>,
}Fields§
§policy_path: PathBuf§default_min: Option<String>§default_max: Option<String>§saving_min: Option<String>§saving_max: Option<String>Implementations§
Source§impl CpuFreqConfig
impl CpuFreqConfig
pub fn new(saving_cpu_freq: Option<String>) -> Self
pub fn with_policy_path( policy_path: PathBuf, saving_cpu_freq: Option<String>, ) -> Self
pub fn apply_saving_mode(&self, dry_run: bool)
pub fn apply_normal_mode(&self, dry_run: bool)
Trait Implementations§
Source§impl Clone for CpuFreqConfig
impl Clone for CpuFreqConfig
Source§fn clone(&self) -> CpuFreqConfig
fn clone(&self) -> CpuFreqConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CpuFreqConfig
impl RefUnwindSafe for CpuFreqConfig
impl Send for CpuFreqConfig
impl Sync for CpuFreqConfig
impl Unpin for CpuFreqConfig
impl UnwindSafe for CpuFreqConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)