pub struct ThermalSensor {
pub name: String,
pub temperature: f32,
pub critical_temperature: Option<f32>,
pub max_temperature: Option<f32>,
pub sensor_type: String,
pub temperature_history: Vec<TemperatureReading>,
}
Expand description
Thermal sensor information
Fields§
§name: String
Sensor name
temperature: f32
Current temperature in Celsius
critical_temperature: Option<f32>
Critical temperature threshold
max_temperature: Option<f32>
Maximum recorded temperature
sensor_type: String
Sensor type (CPU, GPU, System, etc.)
temperature_history: Vec<TemperatureReading>
Historical temperature readings (last 10 readings)
Trait Implementations§
Source§impl Clone for ThermalSensor
impl Clone for ThermalSensor
Source§fn clone(&self) -> ThermalSensor
fn clone(&self) -> ThermalSensor
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 ThermalSensor
impl Debug for ThermalSensor
Source§impl<'de> Deserialize<'de> for ThermalSensor
impl<'de> Deserialize<'de> for ThermalSensor
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 ThermalSensor
impl RefUnwindSafe for ThermalSensor
impl Send for ThermalSensor
impl Sync for ThermalSensor
impl Unpin for ThermalSensor
impl UnwindSafe for ThermalSensor
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