A Rust Finite State Machine (FSM)