BusyPin

Trait BusyPin 

Source
pub trait BusyPin: Sealed {
    type Pin: InputPin;

    // Required method
    async fn wait_ready(
        pin: &mut Self::Pin,
        timeout: Duration,
    ) -> Result<(), Lr2021Error>;
}
Expand description

Sealed trait to implement two flavor of the driver where the busy pin can be either a simple input or one implemeting the Wait trait

Required Associated Types§

Required Methods§

Source

async fn wait_ready( pin: &mut Self::Pin, timeout: Duration, ) -> Result<(), Lr2021Error>

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§