Trait actix::ActorContext [] [src]

pub trait ActorContext: Sized {
    fn stop(&mut self);
fn terminate(&mut self);
fn state(&self) -> ActorState; fn alive(&self) -> bool { ... } }

Actor execution context

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

Required Methods

Gracefully stop actor execution

Terminate actor execution

Actor execution state

Provided Methods

Check if execution context is alive

Implementors