Struct rotor::EarlyScope [] [src]

pub struct EarlyScope<'a> {
    // some fields omitted
}

This is a structure that works similarly to Scope, but doesn't have a context

The primary (and probably the only) use case for the EarlyScope is to allow to create a state machine before context has been intialized. This is useful if you want to put a Notifier of the FSM to a context itself.

Methods

impl<'a> EarlyScope<'a>
[src]

fn register(&mut self, io: &Evented, interest: EventSet, opt: PollOpt) -> Result<()>

fn reregister(&mut self, io: &Evented, interest: EventSet, opt: PollOpt) -> Result<()>

fn deregister(&mut self, io: &Evented) -> Result<()>

fn timeout_ms(&mut self, delay: u64) -> Result<TimeoutTimerError>

fn clear_timeout(&mut self, token: Timeout) -> bool

fn notifier(&mut self) -> Notifier

Create a Notifier that may be used to wakeup enclosed state machine

Trait Implementations

impl<'a> GenericScope for EarlyScope<'a>
[src]

fn register(&mut self, io: &Evented, interest: EventSet, opt: PollOpt) -> Result<()>

fn reregister(&mut self, io: &Evented, interest: EventSet, opt: PollOpt) -> Result<()>

fn deregister(&mut self, io: &Evented) -> Result<()>

fn timeout_ms(&mut self, delay: u64) -> Result<TimeoutTimerError>

fn clear_timeout(&mut self, token: Timeout) -> bool

fn notifier(&mut self) -> Notifier

Create a Notifier that may be used to wakeup enclosed state machine