#[non_exhaustive]pub struct Temperature {
pub label: String,
pub kind: SensorKind,
pub celsius: f32,
pub high: Option<f32>,
pub critical: Option<f32>,
}Expand description
One temperature sensor.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.label: StringWhat the OS calls it: “Package id 0”, “Composite”, “edge”.
kind: SensorKindWhat it measures.
celsius: f32The reading.
high: Option<f32>Where the hardware starts to complain, when it says.
critical: Option<f32>Where the hardware shuts down or throttles hard, when it says.
Trait Implementations§
Source§impl Clone for Temperature
impl Clone for Temperature
Source§impl Debug for Temperature
impl Debug for Temperature
Source§impl PartialEq for Temperature
impl PartialEq for Temperature
impl StructuralPartialEq for Temperature
Auto Trait Implementations§
impl Forget for Temperature
impl Freeze for Temperature
impl Move 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