Crate rotor

Source
Expand description

The mio-based framework for doing I/O in simple and composable way

More documentation in the guide

Re-exports§

pub use mio_original as mio;
pub use void_original as void;

Macros§

rotor_compose
Compose multiple state machines into single type

Structs§

Config
Event loop configuration
EarlyScope
This is a structure that works similarly to Scope, but doesn’t have a context
EventSet
Loop
An object that is used to construct a loop
LoopInstance
Second stage of loop creation
Notifier
The object used to wakeup unrelated state machine
PollOpt
Response
The response of a state machine to the (mio) action
Scope
The structure passed to every action handler
Time
The current time
Timeout
TimerError

Enums§

Compose2
Composes two state machines
SpawnError
Error when spawning a new state machine
Void
The empty type for cases which can’t occur.
WakeupError
Error when waking up a connection

Traits§

Evented
A value that may be registered with an EventLoop
GenericScope
A common part of Scope and EarlyScope
Machine
A trait that every state machine in the loop must implement