Struct actix::dev::ContextImpl [] [src]

pub struct ContextImpl<A> where
    A: Actor,
    A::Context: AsyncContext<A>, 
{ /* fields omitted */ }

Actor execution context impl

This is base Context implementation. Multiple cell's could be added.

Methods

impl<A> ContextImpl<A> where
    A: Actor,
    A::Context: AsyncContext<A>, 
[src]

[src]

[src]

[src]

Mutable reference to an actor.

It panics if actor is not set

[src]

Mark context as modified, this cause extra poll loop over all items

[src]

Is context waiting for future completion

[src]

Initiate stop process for actor execution

Actor could prevent stopping by returning false from Actor::stopping() method.

[src]

Terminate actor execution

[src]

Actor execution state

[src]

Handle of the running future

[src]

Spawn new future to this context.

[src]

Spawn new future to this context and wait future completion.

During wait period actor does not receive any messages.

[src]

Cancel previously scheduled future.

[src]

[src]

[src]

[src]

[src]

[src]

Restart context. Cleanup all futures, except address queue.

[src]

[src]

[src]

[src]