DhtReading

Trait DhtReading 

Source
pub trait DhtReading: FromRaw + Sized {
    // Provided method
    fn read<P, E>(
        delay: &mut dyn Delay,
        pin: &mut P,
    ) -> Result<Self, DhtError<E>>
       where P: InputOutputPin<E> { ... }
}

Provided Methods§

Source

fn read<P, E>(delay: &mut dyn Delay, pin: &mut P) -> Result<Self, DhtError<E>>
where P: InputOutputPin<E>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl DhtReading for dht_sensor::dht11::Reading

Source§

impl DhtReading for dht_sensor::dht22::Reading