automate
macro_rules! stateful { ($($listener:expr),*) => { ... }; }
Parses a list of state structs before sending them to the Configuration::register method.