Enum rotor::Compose2 [] [src]

pub enum Compose2<A: Sized, B: Sized> {
    A(A),
    B(B),
}

Composes two state machines

Used to "mount" two different application into single main loop, or to use multiple protocols simultaneously. Can be nested to any level.

We will probably implement n > 2 composition later, for effeciency reasons.

Variants

Trait Implementations

impl<X, AA, BB> Machine for Compose2<AA, BB> where AA: Machine<Context=X>, BB: Machine<Context=X>
[src]

Context type for the state machine Read more

Seed is piece of data that is needed to initialize the machine Read more

Create a machine from some data Read more

Socket readiness notification

Called after spawn event Read more

Timeout happened

Message received Read more

Called instead of spawned, if there is no slab space Read more