[][src]Derive Macro automate::State

#[derive(State)]

Derive macro for a state struct.

Stateful listeners (methods annotated with ̀#listener) need a bit of extra code to work properly. The necessary code is generated by this derive macro. It implements the [State](automate::events::State) in order to relay the events to the methods annotated with #listener`