pub trait FsmTimers<F> where
F: FsmBackend, {
fn create(
&mut self,
id: <F as FsmBackend>::Timers,
settings: &TimerSettings
) -> FsmResult<()>;
fn cancel(&mut self, id: <F as FsmBackend>::Timers) -> FsmResult<()>;
fn get_triggered_timer(&mut self) -> Option<<F as FsmBackend>::Timers>;
}
Required methods
fn create(
&mut self,
id: <F as FsmBackend>::Timers,
settings: &TimerSettings
) -> FsmResult<()>
fn get_triggered_timer(&mut self) -> Option<<F as FsmBackend>::Timers>
fn get_triggered_timer(&mut self) -> Option<<F as FsmBackend>::Timers>
Return the timer that was triggered. Poll this until it returns None. The events should be dequeued in a FIFO manner.