Struct actix::dev::ContextParts[][src]

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

Methods

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

Create new ContextParts instance

Initiate stop process for actor execution

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

Terminate actor execution

Actor execution state

Is context waiting for future completion

Handle of the running future

Spawn new future to this context.

Spawn new future to this context and wait future completion.

During wait period actor does not receive any messages.

Cancel previously scheduled future.

Auto Trait Implementations

impl<A> !Send for ContextParts<A>

impl<A> !Sync for ContextParts<A>