Skip to main content

CanTransitionWith

Trait CanTransitionWith 

Source
pub trait CanTransitionWith<Data> {
    type NextState;
    type Output;

    // Required method
    fn transition_with_data(self, data: Data) -> Self::Output;
}
Expand description

A machine that can transition using Data.

Required Associated Types§

Source

type NextState

The next state selected by this transition.

Source

type Output

The transition result type.

Required Methods§

Source

fn transition_with_data(self, data: Data) -> Self::Output

Perform the transition with payload data.

Implementors§