pub trait FsmTransitionGuard<F: FsmBackend, E> {
    fn guard<'a, Q: FsmEventQueue<F>>(
        event: &E,
        context: &EventContext<'a, F, Q>,
        states: &'a <F as FsmBackend>::States
    ) -> bool; fn execute_guard<'a, 'b, 'c, 'd, Q: FsmEventQueue<F>, I, T>(
        context: &'d mut DispatchContext<'a, 'b, 'c, F, Q, I, T>,
        event: &E,
        region: FsmRegionId,
        inspect_event_ctx: &mut I
    ) -> bool
    where
        I: Inspect,
        Self: Sized,
        T: FsmTimers<F>
, { ... } }
Expand description

Check if this transition is allowed to be entered.

Required methods

Return a boolean value whether this transition is usable at the moment. The check shouln’t mutate any structures.

Provided methods

Implementors