Struct actix_rt::ArbiterHandle[][src]

pub struct ArbiterHandle { /* fields omitted */ }

A handle for sending spawn and stop messages to an Arbiter.

Implementations

impl ArbiterHandle[src]

pub fn spawn<Fut>(&self, future: Fut) -> bool where
    Fut: Future<Output = ()> + Send + 'static, 
[src]

Send a future to the Arbiter's thread and spawn it.

If you require a result, include a response channel in the future.

Returns true if future was sent successfully and false if the Arbiter has died.

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

Send a function to the Arbiter's thread and execute it.

Any result from the function is discarded. If you require a result, include a response channel in the function.

Returns true if function was sent successfully and false if the Arbiter has died.

pub fn stop(&self) -> bool[src]

Instruct Arbiter to stop processing it's event loop.

Returns true if stop message was sent successfully and false if the Arbiter has been dropped.

Trait Implementations

impl Clone for ArbiterHandle[src]

impl Debug for ArbiterHandle[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.