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

pub struct ContextImpl<A, C = ()> where
    A: Actor,
    A::Context: AsyncContext<A> + AsyncContextApi<A>, 
{ /* fields omitted */ }

Actor execution context impl

This is base Context implementation. It supports one extra cell impl with type ContextCell<A> (i.e. ActorFramedCell)

Methods

impl<A, C> ContextImpl<A, C> where
    A: Actor,
    A::Context: AsyncContext<A> + AsyncContextApi<A>,
    C: ContextCell<A>, 
[src]

[src]

[src]

[src]

[src]

Mutable reference to an actor.

It panics if actor is not set

[src]

Mutable reference to cell

[src]

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

[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]

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]

[src]

[src]

[src]

[src]