pub struct Reading<K> { /* private fields */ }Expand description
A DHT sensor combined temperature and relative humidity reading.
Implementations§
Source§impl<K: DhtKind> Reading<K>
impl<K: DhtKind> Reading<K>
Sourcepub fn temp_celcius(self) -> f32
pub fn temp_celcius(self) -> f32
Returns the temperature in Celcius.
Sourcepub fn temp_fahrenheit(self) -> f32
pub fn temp_fahrenheit(self) -> f32
Returns the temperature in Fahrenheit.
Sourcepub fn humidity_percent(self) -> f32
pub fn humidity_percent(self) -> f32
Returns the temperature in Fahrenheit.
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for Reading<K>
impl<K> RefUnwindSafe for Reading<K>
impl<K> Send for Reading<K>
impl<K> Sync for Reading<K>
impl<K> Unpin for Reading<K>
impl<K> UnwindSafe for Reading<K>
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