state_machine_future 0.2.0

Easily create type-safe `Future`s from state machines — without the boilerplate.
Documentation
1
2
3
4
5
/// Auxiliary macro for `poll_state_xy` functions to transition into a new state.
#[macro_export]
macro_rules! transition {
    ( $new_state:expr ) => (return Ok(::futures::Async::Ready($new_state.into())));
}