Skip to main content

TimerSource

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TimerSource for Alarm<'static>

Available on systimer_driver_supported only.
Source§

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

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>

Available on timergroup_driver_supported only.
Source§

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

Implementors§