
Architecture
State Machines in Rust With Enums and Typestate Explained
Model states as an enum when they change at run time and as types when the order is known at compile time. See both versions of a connection and which one to pick.
3 min read
Tag
1 post

Model states as an enum when they change at run time and as types when the order is known at compile time. See both versions of a connection and which one to pick.