[][src]Crate xtra

Structs

ActorManager
Address

An Address is a reference to an actor through which Messages can be sent. It can be cloned, and when all Addresses are dropped, the actor will be stopped. It is created by calling the Actor::start or Actor::spawn methods.

Context

Context is used to signal things to the ActorManager's management loop. Currently, it can be used to stop the actor (Context::stop).

Disconnected

The actor is no longer running and disconnected

Traits

Actor
AsyncHandler

A trait indicating that an Actor can handle a given Message asynchronously, and the logic to handle the message.

Handler

A trait indicating that an Actor can handle a given Message synchronously, and the logic to handle the message.

Message

A message that can be sent to an Actor for processing. They are processed one at a time. Only actors implementing the corresponding Handler<M> trait can be sent a given message.