Struct rotor_test::MockLoop [] [src]

pub struct MockLoop<C> { /* fields omitted */ }

A mock loop implementation

It's not actually fully working loop, just a thing which you can get a Scope object from.

Methods

impl<C> MockLoop<C>
[src]

Create a mock loop

The ctx is a context, and it's type must be compatible to your state machine.

Get a scope object for specified token

This is useful to call state machine actions directly