[][src]Struct dht11::Dht11

pub struct Dht11<GPIO> { /* fields omitted */ }

A DHT11 device.

Implementations

impl<GPIO, E> Dht11<GPIO> where
    GPIO: InputPin<Error = E> + OutputPin<Error = E>, 
[src]

pub fn new(gpio: GPIO) -> Self[src]

Creates a new DHT11 device connected to the specified pin.

pub fn destroy(self) -> GPIO[src]

Destroys the driver, returning the GPIO instance.

pub fn perform_measurement<D>(
    &mut self,
    delay: &mut D
) -> Result<Measurement, Error<E>> where
    D: DelayUs<u16> + DelayMs<u16>, 
[src]

Performs a reading of the sensor.

Auto Trait Implementations

impl<GPIO> Send for Dht11<GPIO> where
    GPIO: Send

impl<GPIO> Sync for Dht11<GPIO> where
    GPIO: Sync

impl<GPIO> Unpin for Dht11<GPIO> where
    GPIO: Unpin

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.