Skip to content

Glossary: Software Design Patterns in Rust

State machine

Also written: state machines

Something that is always in exactly one of a fixed set of states, with rules for the allowed moves between them. An order goes placed, paid, shipped, delivered, and can be cancelled before shipping.

Where the book teaches it

Related terms

TransitionStateenum