pub trait Handler: Send {
    // Required method
    fn trigger(&mut self) -> Behavior;
}
Available on riot_module_ztimer and riot_module_ztimer_periodic only.
Expand description

Callback for a periodic timer

This is implemented as a trait (rather than Timer taking a callback directly) as to allow interaction with the handler in a critical section in Timer::alter.

Required Methods§

source

fn trigger(&mut self) -> Behavior

Implementors§