Trait pal_async::timer::TimerDriver

source ·
pub trait TimerDriver: Unpin {
    type Timer: 'static + PollTimer;

    // Required method
    fn new_timer(&self) -> Self::Timer;
}
Expand description

A trait for driving timers.

Required Associated Types§

source

type Timer: 'static + PollTimer

The timer type.

Required Methods§

source

fn new_timer(&self) -> Self::Timer

Returns a new timer.

Implementors§