pub struct Config {
pub dry_run: bool,
pub policy_path: Option<PathBuf>,
pub saving_cpu_freq: Option<String>,
pub hold_trigger_sec: Option<f32>,
pub toggle_wifi: bool,
pub wifi_rfkill_path: Option<PathBuf>,
pub log_level: Option<Level>,
}Fields§
§dry_run: bool§policy_path: Option<PathBuf>§saving_cpu_freq: Option<String>§hold_trigger_sec: Option<f32>§toggle_wifi: bool§wifi_rfkill_path: Option<PathBuf>§log_level: Option<Level>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more