pub trait DelayUs {
    type Error: Debug;

    async fn delay_us(&mut self, us: u32) -> Result<(), Self::Error>;
    async fn delay_ms(&mut self, ms: u32) -> Result<(), Self::Error>;
}
Expand description

Microsecond delay

Required Associated Types

Enumeration of errors

Required Methods

Pauses execution for at minimum us microseconds. Pause can be longer if the implementation requires it due to precision/timing issues.

Pauses execution for at minimum ms milliseconds. Pause can be longer if the implementation requires it due to precision/timing issues.

Implementations on Foreign Types

Implementors