We are going to go over how to implement the State Design pattern in Rust (Ch 17 Section 3 of "The Rust Programming" Book).
Outside of going over the State Design patter, this video is a good example of how to use Trait Objects in your code.
...
https://www.youtube.com/watch?v=XPIZpkeFAts