Trait Timer

Source
pub trait Timer {
    // Required methods
    fn reset(&mut self);
    async fn at(&mut self, millis: u64);
    async fn delay_ms(&mut self, millis: u64);
}
Expand description

An asynchronous timer that allows the state machine to await between RX windows.

Required Methods§

Source

fn reset(&mut self)

Source

async fn at(&mut self, millis: u64)

Wait until millis milliseconds after reset has passed

Source

async fn delay_ms(&mut self, millis: u64)

Delay for millis milliseconds

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§