pub struct ThermalComponent {
pub name: Option<String>,
pub component_type: Option<String>,
pub temperature_c: Option<f64>,
pub warning_threshold_c: Option<f64>,
pub critical_threshold_c: Option<f64>,
pub state: Option<ThermalState>,
}Expand description
Thermal component.
Fields§
§name: Option<String>Component name
component_type: Option<String>Component type
temperature_c: Option<f64>Temperature (Celsius)
warning_threshold_c: Option<f64>Warning threshold (Celsius)
critical_threshold_c: Option<f64>Critical threshold (Celsius)
state: Option<ThermalState>Thermal state
Implementations§
Trait Implementations§
Source§impl Clone for ThermalComponent
impl Clone for ThermalComponent
Source§fn clone(&self) -> ThermalComponent
fn clone(&self) -> ThermalComponent
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 ThermalComponent
impl Debug for ThermalComponent
Source§impl Default for ThermalComponent
impl Default for ThermalComponent
Source§fn default() -> ThermalComponent
fn default() -> ThermalComponent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThermalComponent
impl<'de> Deserialize<'de> for ThermalComponent
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
Source§impl Serialize for ThermalComponent
impl Serialize for ThermalComponent
Auto Trait Implementations§
impl Freeze for ThermalComponent
impl RefUnwindSafe for ThermalComponent
impl Send for ThermalComponent
impl Sync for ThermalComponent
impl Unpin for ThermalComponent
impl UnwindSafe for ThermalComponent
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