pub enum MonitoringEvent {
ThermalAlert {
sensor_name: String,
temperature: f32,
threshold: f32,
timestamp: SystemTime,
},
PowerAlert {
current_power: f32,
threshold: f32,
timestamp: SystemTime,
},
HardwareChanged {
change_type: HardwareChangeType,
description: String,
timestamp: SystemTime,
},
MonitoringError {
error: String,
timestamp: SystemTime,
},
MetricsUpdate {
hardware_info: Option<HardwareInfo>,
thermal_info: Option<ThermalInfo>,
power_profile: Option<PowerProfile>,
timestamp: SystemTime,
},
}
Expand description
Hardware monitoring event
Variants§
ThermalAlert
Thermal threshold exceeded
PowerAlert
Power consumption alert
HardwareChanged
Hardware configuration changed
MonitoringError
Monitoring error occurred
MetricsUpdate
Regular update with current metrics
Fields
§
hardware_info: Option<HardwareInfo>
§
thermal_info: Option<ThermalInfo>
§
power_profile: Option<PowerProfile>
§
timestamp: SystemTime
Trait Implementations§
Source§impl Clone for MonitoringEvent
impl Clone for MonitoringEvent
Source§fn clone(&self) -> MonitoringEvent
fn clone(&self) -> MonitoringEvent
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 MonitoringEvent
impl Debug for MonitoringEvent
Source§impl<'de> Deserialize<'de> for MonitoringEvent
impl<'de> Deserialize<'de> for MonitoringEvent
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 MonitoringEvent
impl RefUnwindSafe for MonitoringEvent
impl Send for MonitoringEvent
impl Sync for MonitoringEvent
impl Unpin for MonitoringEvent
impl UnwindSafe for MonitoringEvent
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