[]Struct actix::prelude::SystemRunner

#[must_use = "SystemRunner must be run"]
pub struct SystemRunner { /* fields omitted */ }

Helper object that runs System's event loop

Methods

impl SystemRunner

pub fn run(self) -> Result<(), Error>

This 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>, 

Execute a future and wait for result.

Trait Implementations

impl Debug for SystemRunner

Auto Trait Implementations

impl !Send for SystemRunner

impl !Sync for SystemRunner

impl Unpin for SystemRunner

impl !UnwindSafe for SystemRunner

impl !RefUnwindSafe for SystemRunner

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,