pub struct CpuMonitor { /* private fields */ }Expand description
Monitor for a specific CPU core
Implementations§
Source§impl CpuMonitor
impl CpuMonitor
Sourcepub fn read_frequency(&self) -> Option<u64>
pub fn read_frequency(&self) -> Option<u64>
Read current frequency in kHz (returns None if unavailable)
Sourcepub fn read_governor(&self) -> Option<String>
pub fn read_governor(&self) -> Option<String>
Read current governor (returns None if unavailable)
Sourcepub fn read_frequency_range(&self) -> Option<(u64, u64)>
pub fn read_frequency_range(&self) -> Option<(u64, u64)>
Read frequency range (min, max in kHz)
Sourcepub fn read_temperature(&self) -> Option<i32>
pub fn read_temperature(&self) -> Option<i32>
Read current temperature in millidegrees Celsius (returns None if unavailable)
Sourcepub fn discover_thermal_zones() -> Vec<usize>
pub fn discover_thermal_zones() -> Vec<usize>
Find available thermal zones (returns zone indices)
Auto Trait Implementations§
impl Freeze for CpuMonitor
impl RefUnwindSafe for CpuMonitor
impl Send for CpuMonitor
impl Sync for CpuMonitor
impl Unpin for CpuMonitor
impl UnwindSafe for CpuMonitor
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