Struct romeo::actor::Context[][src]

pub struct Context { /* fields omitted */ }

Context is the method by which an actor interacts with the running actor system. It is preferable to using a system handle directly because the actions of the context are tailored to the actor. This includes lifecycle actions (such as shutting down or restarting) as well as actor-system events that are altered by the context, such as creating an actor (which establishes a parent-child relationship).

A context does not have any state that persists between calls, so it doesn't expose any methods for storing state, and should not be sought after as an alternative to defining state within an actor.

Methods

impl Context
[src]

Auto Trait Implementations

impl Send for Context

impl Sync for Context