[][src]Struct dht_hal::Reading

pub struct Reading<K> { /* fields omitted */ }

A DHT sensor combined temperature and relative humidity reading.

Methods

impl<K: DhtKind> Reading<K>[src]

pub fn temp_celcius(self) -> f32[src]

Returns the temperature in Celcius.

pub fn temp_fahrenheit(self) -> f32[src]

Returns the temperature in Fahrenheit.

pub fn humidity_percent(self) -> f32[src]

Returns the temperature in Fahrenheit.

Trait Implementations

impl<K: Clone> Clone for Reading<K>[src]

impl<K: Debug> Debug for Reading<K>[src]

Auto Trait Implementations

impl<K> Send for Reading<K>

impl<K> Sync for Reading<K>

impl<K> Unpin for Reading<K>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.