```rust match state { SomeState => { enter stuff wait exit stuff } OtherState => {...} }