Struct umio::ELoop [] [src]

pub struct ELoop<D: Dispatcher> {
    // some fields omitted
}

Wrapper around the main application event loop.

Methods

impl<D: Dispatcher> ELoop<D>
[src]

fn channel(&self) -> Sender<D::Message>

Grab a channel to send messages to the event loop.

fn run(&mut self, dispatcher: D) -> Result<()>

Run the event loop with the given dispatcher until a shutdown occurs.