[]Struct actix_web::actix::actix::SyncArbiter

pub struct SyncArbiter<A> where
    A: Actor<Context = SyncContext<A>>, 
{ /* fields omitted */ }

Sync arbiter

Methods

impl<A> SyncArbiter<A> where
    A: Actor<Context = SyncContext<A>>, 

Start new sync arbiter with specified number of worker threads. Returns address of the started actor.

Trait Implementations

impl<A> Actor for SyncArbiter<A> where
    A: Actor<Context = SyncContext<A>>, 

Actor execution context type

Method is called when actor get polled first time.

Method is called after an actor is in Actor::Stopping state. There could be several reasons for stopping. Context::stop get called by the actor itself. All addresses to current actor get dropped and no more evented objects left in the context. Read more

Method is called after an actor is stopped, it can be used to perform any needed cleanup work or spawning more actors. This is final state, after this call actor get dropped. Read more

Start new asynchronous actor, returns address of newly created actor. Read more

Start new asynchronous actor, returns address of newly created actor.

Use create method, if you need Context object during actor initialization. Read more

Auto Trait Implementations

impl<A> Send for SyncArbiter<A>

impl<A> Sync for SyncArbiter<A>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<F> IntoFuture for F where
    F: Future
[src]

The future that this type can be converted into.

The item that the future may resolve with.

The error that the future may resolve with.

Consumes this object and produces a future.

impl<T> Erased for T

impl<T> FutureExt for T where
    T: Future + ?Sized
[src]

Creates a new future which allows self until timeout. Read more

impl<F, A> WrapFuture for F where
    A: Actor,
    F: Future

The future that this type can be converted into.

The item that the future may resolve with.

The error that the future may resolve with.

Convert normal future to a ActorFuture