Delay

Trait Delay 

Source
pub trait Delay<const TIMER_HZ: u32> {
    type Error: Debug;

    // Required method
    fn delay(
        &mut self,
        duration: TimerDurationU32<TIMER_HZ>,
    ) -> Result<(), Self::Error>;
}
Expand description

Provides blocking Delay

Required Associated Types§

Source

type Error: Debug

An error that might happen during waiting

Required Methods§

Source

fn delay( &mut self, duration: TimerDurationU32<TIMER_HZ>, ) -> Result<(), Self::Error>

Wait until timer duration has expired.

Implementors§