Struct actix_rt::System[][src]

pub struct System { /* fields omitted */ }

A manager for a per-thread distributed async runtime.

Implementations

impl System[src]

pub fn new() -> SystemRunner[src]

Create a new system.

Panics

Panics if underlying Tokio runtime can not be created.

pub fn current() -> System[src]

Get current running system.

Panics

Panics if no system is registered on the current thread.

pub fn arbiter(&self) -> &ArbiterHandle[src]

Get handle to a the System's initial Arbiter.

pub fn is_registered() -> bool[src]

Check if there is a System registered on the current thread.

pub fn id(&self) -> usize[src]

Numeric system identifier.

Useful when using multiple Systems.

pub fn stop(&self)[src]

Stop the system (with code 0).

pub fn stop_with_code(&self, code: i32)[src]

Stop the system with a given exit code.

Trait Implementations

impl Clone for System[src]

impl Debug for System[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.