Trait TimerCollection

Source
pub trait TimerCollection {
    // Required method
    fn timers(self) -> &'static mut [OneShotTimer<'static, Blocking>];
}
Expand description

A trait to allow better UX for initializing the timers.

This trait is meant to be used only for the init function. Calling timers() multiple times may panic.

Required Methods§

Source

fn timers(self) -> &'static mut [OneShotTimer<'static, Blocking>]

Returns the timers as a slice.

Implementations on Foreign Types§

Source§

impl TimerCollection for &'static mut [OneShotTimer<'static, Blocking>]

Source§

fn timers(self) -> &'static mut [OneShotTimer<'static, Blocking>]

Source§

impl TimerCollection for OneShotTimer<'static, Blocking>

Source§

fn timers(self) -> &'static mut [OneShotTimer<'static, Blocking>]

Source§

impl<T> TimerCollection for [T; 2]
where T: IntoAnyTimer,

Source§

fn timers(self) -> &'static mut [OneShotTimer<'static, Blocking>]

Source§

impl<T> TimerCollection for [T; 3]
where T: IntoAnyTimer,

Source§

fn timers(self) -> &'static mut [OneShotTimer<'static, Blocking>]

Source§

impl<T> TimerCollection for [T; 4]
where T: IntoAnyTimer,

Source§

fn timers(self) -> &'static mut [OneShotTimer<'static, Blocking>]

Source§

impl<const N: usize> TimerCollection for &'static mut [OneShotTimer<'static, Blocking>; N]

Source§

fn timers(self) -> &'static mut [OneShotTimer<'static, Blocking>]

Implementors§

Source§

impl<T> TimerCollection for T
where T: IntoAnyTimer,