Trait rex::Kind

source ·
pub trait Kind: Debug + Send {
    type State: State;

    // Required methods
    fn new_state(&self) -> Self::State;
    fn failed_state(&self) -> Self::State;
    fn completed_state(&self) -> Self::State;
}
Expand description

Acts as a discriminant between various State enumerations, similar to std::mem::Discriminant. Used to define the scope for Signals cycled through a StateMachineManager.

Required Associated Types§

Required Methods§

source

fn new_state(&self) -> Self::State

source

fn failed_state(&self) -> Self::State

source

fn completed_state(&self) -> Self::State

Implementors§

source§

impl<Id, K> Kind for Id
where K: Kind, Id: Deref<Target = K> + Send + Debug,

§

type State = <K as Kind>::State