pub struct DhtValue { /* private fields */ }Expand description
Contains readings from DHT sensor.
Implementations§
Source§impl DhtValue
impl DhtValue
Sourcepub fn temperature(&self) -> f32
pub fn temperature(&self) -> f32
Return temperature readings in Celsius. All raw data from DHT sensor are related to this scale.
Sourcepub fn temperature_f(&self) -> f32
pub fn temperature_f(&self) -> f32
Convert temperature readings from Celsius to Fahrenheit for those who love to use piffle scales and measurements.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DhtValue
impl RefUnwindSafe for DhtValue
impl Send for DhtValue
impl Sync for DhtValue
impl Unpin for DhtValue
impl UnwindSafe for DhtValue
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