pub struct MonitoringConfig {
pub update_interval: Duration,
pub enable_thermal: bool,
pub enable_power: bool,
pub enable_hardware: bool,
pub thermal_threshold: f32,
pub power_threshold: Option<f32>,
pub background_monitoring: bool,
}
Expand description
Hardware monitoring configuration
Fields§
§update_interval: Duration
Update interval for hardware polling
enable_thermal: bool
Enable thermal monitoring
enable_power: bool
Enable power monitoring
enable_hardware: bool
Enable general hardware monitoring
thermal_threshold: f32
Temperature threshold for thermal alerts (Celsius)
power_threshold: Option<f32>
Power threshold for power alerts (Watts)
background_monitoring: bool
Enable background monitoring
Trait Implementations§
Source§impl Clone for MonitoringConfig
impl Clone for MonitoringConfig
Source§fn clone(&self) -> MonitoringConfig
fn clone(&self) -> MonitoringConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MonitoringConfig
impl Debug for MonitoringConfig
Source§impl Default for MonitoringConfig
impl Default for MonitoringConfig
Source§impl<'de> Deserialize<'de> for MonitoringConfig
impl<'de> Deserialize<'de> for MonitoringConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MonitoringConfig
impl RefUnwindSafe for MonitoringConfig
impl Send for MonitoringConfig
impl Sync for MonitoringConfig
impl Unpin for MonitoringConfig
impl UnwindSafe for MonitoringConfig
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