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§
Sourcefn timer(self) -> OneShotTimer<'static, Blocking>
fn timer(self) -> OneShotTimer<'static, Blocking>
Returns the timer source.
Implementations on Foreign Types§
Source§impl TimerSource for AnyTimer<'static>
impl TimerSource for AnyTimer<'static>
fn timer(self) -> OneShotTimer<'static, Blocking>
Source§impl TimerSource for OneShotTimer<'static, Blocking>
impl TimerSource for OneShotTimer<'static, Blocking>
fn timer(self) -> OneShotTimer<'static, Blocking>
Source§impl TimerSource for Timer<'static>
Available on timergroup_driver_supported only.
impl TimerSource for Timer<'static>
Available on
timergroup_driver_supported only.