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.
This is the stable trait-level view of self.transition_with(data).
Required Associated Types§
Required Methods§
Sourcefn transition_with_data(self, data: Data) -> Self::Output
fn transition_with_data(self, data: Data) -> Self::Output
Perform the transition with payload data.