[][src]Struct dht_hal_drv::DhtValue

pub struct DhtValue { /* fields omitted */ }

Contains readings from DHT sensor.

Methods

impl DhtValue[src]

pub fn temperature(&self) -> f32[src]

Return temperature readings in Celsius. All raw data from DHT sensor are related to this scale.

pub fn temperature_f(&self) -> f32[src]

Convert temperature readings from Celsius to Fahrenheit for those who love to use piffle scales and measurements.

pub fn humidity(&self) -> f32[src]

Return humidity readins in percents.

Trait Implementations

impl Debug for DhtValue[src]

Auto Trait Implementations

impl Unpin for DhtValue

impl Send for DhtValue

impl Sync for DhtValue

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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