Rust - Abstracting the FSM

This is a followup to my previous tutorial on creating a finite state machine in Rust.

As usual, you can find the video version at YouTube.

*****
Written by Leo Tindall on 08 July 2016