pub trait DelayUs {
    type Error: Debug;
    type DelayUsFuture<'a>: Future<Output = Result<(), Self::Error>>
    where
        Self: 'a
; type DelayMsFuture<'a>: Future<Output = Result<(), Self::Error>>
    where
        Self: 'a
; fn delay_us(&mut self, us: u32) -> Self::DelayUsFuture<'_>; fn delay_ms(&mut self, ms: u32) -> Self::DelayMsFuture<'_>; }
Expand description

Microsecond delay

Required Associated Types

Enumeration of errors

The future returned by the delay_us function.

The future returned by the delay_ms function.

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