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]
impl SystemRunnerpub fn run(self) -> i32[src]
pub fn run(self) -> i32This function will start event loop and will finish once the
System::stop() function is called.
pub fn block_on<F, I, E>(&mut self, fut: F) -> Result<I, E> where
F: Future<Item = I, Error = E>, [src]
pub fn block_on<F, I, E>(&mut self, fut: F) -> Result<I, E> where
F: Future<Item = I, Error = E>, Execute a future and wait for result.
Auto Trait Implementations
impl !Send for SystemRunner
impl !Send for SystemRunnerimpl !Sync for SystemRunner
impl !Sync for SystemRunner