Struct finny::FsmTimersSub
source · [−]pub struct FsmTimersSub<'a, T, F, FSub> where
F: FsmBackend,
T: FsmTimers<F>, {
pub parent: &'a mut T,
pub _parent_fsm: PhantomData<F>,
pub _sub_fsm: PhantomData<FSub>,
}
Fields
parent: &'a mut T
_parent_fsm: PhantomData<F>
_sub_fsm: PhantomData<FSub>
Trait Implementations
impl<'a, T, F, FSub> FsmTimers<FSub> for FsmTimersSub<'a, T, F, FSub> where
F: FsmBackend,
T: FsmTimers<F>,
FSub: FsmBackend,
<F as FsmBackend>::Timers: From<<FSub as FsmBackend>::Timers>,
impl<'a, T, F, FSub> FsmTimers<FSub> for FsmTimersSub<'a, T, F, FSub> where
F: FsmBackend,
T: FsmTimers<F>,
FSub: FsmBackend,
<F as FsmBackend>::Timers: From<<FSub as FsmBackend>::Timers>,
fn create(
&mut self,
id: <FSub as FsmBackend>::Timers,
settings: &TimerSettings
) -> FsmResult<()>
Return the timer that was triggered. Poll this until it returns None. The events should be dequeued in a FIFO manner. Read more