pub trait StateMachine {
    // Required methods
    fn move_to(&mut self, state: States) -> Result<(), Error>;
    fn can_move_to(&self, state: &States) -> Result<(), Error>;
}

Required Methods§

source

fn move_to(&mut self, state: States) -> Result<(), Error>

source

fn can_move_to(&self, state: &States) -> Result<(), Error>

Implementors§