Skip to main content

CanTransitionTo

Trait CanTransitionTo 

Source
pub trait CanTransitionTo<Next> {
    type Output;

    // Required method
    fn transition_to(self) -> Self::Output;
}
Expand description

A machine that can transition directly to Next.

This is the stable trait-level view of self.transition().

Required Associated Types§

Source

type Output

The transition result type.

Required Methods§

Source

fn transition_to(self) -> Self::Output

Perform the transition.

Implementors§