Struct actix::SystemRunner
[−]
[src]
#[must_use = "SystemRunner must be run"]pub struct SystemRunner { /* fields omitted */ }
Helper object that runs System's event loop
Methods
impl SystemRunner
[src]
pub fn handle(&self) -> &Handle
[src]
Returns handle to the current event loop.
pub fn run(self) -> i32
[src]
This function will start event loop and will finish once the SystemExit
message get received.
pub fn run_until_complete<F, I, E>(&mut self, fut: F) -> Result<I, E> where
F: Future<Item = I, Error = E>,
[src]
F: Future<Item = I, Error = E>,