pub trait AsStates { // Required method fn as_states(&self) -> States; }
This trait is used to convert a set of Messages into a set of States