pub struct TemperatureSensor { /* private fields */ }
Expand description
Hardware temperature sensor.
Implementations§
Source§impl TemperatureSensor
impl TemperatureSensor
Sourcepub fn current(&self) -> ThermodynamicTemperature
pub fn current(&self) -> ThermodynamicTemperature
Returns current temperature reported by sensor.
Sourcepub fn high(&self) -> Option<ThermodynamicTemperature>
pub fn high(&self) -> Option<ThermodynamicTemperature>
Returns high trip point for sensor if available.
Sourcepub fn critical(&self) -> Option<ThermodynamicTemperature>
pub fn critical(&self) -> Option<ThermodynamicTemperature>
Returns critical trip point for sensor if available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TemperatureSensor
impl !RefUnwindSafe for TemperatureSensor
impl Send for TemperatureSensor
impl Sync for TemperatureSensor
impl Unpin for TemperatureSensor
impl !UnwindSafe for TemperatureSensor
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