Module theatre::prelude[][src]

Convenience module for common actor types

Structs

Addr

An Address to an Actor. Actor addresses allow for messages to be sent to actors.

Context

Context is the execution context of the actor. It allows for the actor to dynamically retrieve the address of the actor’s Mailbox.

Recipient

An address parametrized of the message type instead of an Actor type. This allows for collections of actors that may receive a particular message.

Enums

TheatreError

Possible error variants.

Traits

Actor

Actor is one of the core traits of theatre.

ActorExt

Extensions for Actors. This is blanket impl’d on any type that implements Actor.

Handler

The Handler trait allows for an actor to have a per-message type handle implementation.

Message

A Message is the interface to data that can be sent between actors. Messages and their return types must be Send so that the actors can be executed concurrently on separate threads.

Attribute Macros

async_trait