cooplan_state_tracker/
state.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Deserialize, Serialize, PartialEq, Debug)]
4pub enum State {
5 Idle,
6 Valid,
7 Error(String),
8}
9
10impl State {
11 pub fn is_error(&self) -> bool {
12 matches!(self, State::Error(_))
13 }
14}