Trait TimerSource

Source
pub trait TimerSource: Sealed + 'static {
    // Required method
    fn timer(self) -> OneShotTimer<'static, Blocking>;
}
Expand description

Timers that can be used as time drivers.

This trait is meant to be used only for the start function.

Required Methods§

Source

fn timer(self) -> OneShotTimer<'static, Blocking>

Returns the timer source.

Implementations on Foreign Types§

Source§

impl TimerSource for AnyTimer<'static>

Source§

fn timer(self) -> OneShotTimer<'static, Blocking>

Source§

impl TimerSource for OneShotTimer<'static, Blocking>

Source§

fn timer(self) -> OneShotTimer<'static, Blocking>

Source§

impl TimerSource for Timer<'static>

Source§

fn timer(self) -> OneShotTimer<'static, Blocking>

Implementors§