[][src]Trait finny::FsmTransitionGuard

pub trait FsmTransitionGuard<F: FsmBackend, E> {
    pub fn guard<'a, Q: FsmEventQueue<F>>(
        event: &E,
        context: &EventContext<'a, F, Q>
    ) -> bool; pub fn execute_guard<Q: FsmEventQueue<F>>(
        frontend: &mut FsmFrontend<F, Q>,
        event: &E
    ) -> bool { ... } }

Check if this transition is allowed to be entered.

Required methods

pub fn guard<'a, Q: FsmEventQueue<F>>(
    event: &E,
    context: &EventContext<'a, F, Q>
) -> bool
[src]

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

Loading content...

Provided methods

pub fn execute_guard<Q: FsmEventQueue<F>>(
    frontend: &mut FsmFrontend<F, Q>,
    event: &E
) -> bool
[src]

Loading content...

Implementors

Loading content...