[][src]Struct actix_rt::Arbiter

pub struct Arbiter(_);

Methods

impl Arbiter[src]

pub fn current() -> Arbiter[src]

Returns current arbiter's address

pub fn stop(&self)[src]

Stop arbiter

pub fn new() -> Arbiter[src]

Spawn new thread and run event loop in spawned thread. Returns address of newly created arbiter.

pub fn spawn<F>(future: F) where
    F: Future<Item = (), Error = ()> + 'static, 
[src]

Spawn a future on the current thread.

pub fn spawn_fn<F, R>(f: F) where
    F: FnOnce() -> R + 'static,
    R: IntoFuture<Item = (), Error = ()> + 'static, 
[src]

Executes a future on the current thread.

pub fn send<F>(&self, future: F) where
    F: Future<Item = (), Error = ()> + Send + 'static, 
[src]

Send a future on the arbiter's thread and spawn.

pub fn exec_fn<F>(&self, f: F) where
    F: FnOnce() + Send + 'static, 
[src]

Send a function to the arbiter's thread and exeute.

pub fn exec<F, R>(&self, f: F) -> impl Future<Item = R, Error = Canceled> where
    F: FnOnce() -> R + Send + 'static,
    R: Send + 'static, 
[src]

Send a function to the arbiter's thread, exeute and return result.

Trait Implementations

impl Default for Arbiter[src]

impl Clone for Arbiter[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Arbiter[src]

Auto Trait Implementations

impl Send for Arbiter

impl Sync for Arbiter

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T