Trait actix::prelude::ActorContext [] [src]

pub trait ActorContext<A>: Sized where
    A: Actor<Context = Self>, 
{ fn stop(&mut self);
fn terminate(&mut self);
fn state(&self) -> ActorState; fn alive(&self) -> bool { ... }
fn address<Address>(&mut self) -> Address
    where
        A: ActorAddress<A, Address>
, { ... } }

Actor execution context

Each actor runs within specific execution context. Actor::Context defines context. Execution context defines type of execution, actor communition channels (message handling).

Required Methods

Gracefuly stop actor execution

Terminate actor execution

Actor execution state

Provided Methods

Check if execution context is alive

Get actor address

Implementors