pub struct Temperature {
pub key: String,
pub label: String,
pub celsius: f32,
pub max_celsius: Option<f32>,
pub critical_celsius: Option<f32>,
}Expand description
One temperature channel.
Fields§
§key: StringStable key "<chip key>/temp<N>" used to look up user-defined names.
Empty for readings that do not come from a hwmon chip.
label: StringDriver label (e.g. "Tccd1"), or a generic "temp<N>" when none exists.
celsius: f32Current reading.
max_celsius: Option<f32>High threshold, if exposed.
critical_celsius: Option<f32>Critical threshold, if exposed.
Trait Implementations§
Source§impl Clone for Temperature
impl Clone for Temperature
Source§impl Debug for Temperature
impl Debug for Temperature
Source§impl Default for Temperature
impl Default for Temperature
Source§impl<'de> Deserialize<'de> for Temperaturewhere
Temperature: Default,
impl<'de> Deserialize<'de> for Temperaturewhere
Temperature: Default,
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 Temperature
impl RefUnwindSafe for Temperature
impl Send for Temperature
impl Sync for Temperature
impl Unpin for Temperature
impl UnsafeUnpin for Temperature
impl UnwindSafe for Temperature
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