Structs
Helper wrapper that provides message name information alongside the handler error.
An actor registry that is queriable via
query_actor() and query_actor_erased().Enums
Error returned by the actor query functions.
Error returned on actor start.
Actor lifecycle states.
Statics
Number of actors alive.
Global actor shutdown signal.
Traits
Actor trait that all actors must implement.
A restricted interface of
Actor that provides send mechanics and state reads.Used in the attribute macro to implement an erased -> typed message sending.
Forwards the message to the respective mailbox.
Handler for specifying message handling logic.
Used to call arbitrary code on state changes.
Marker trait indicating that the type is a message.
Functions
Registers an actor in the actor counter.
Queries a typed actor from the registry.
Queries an erased actor from the registry.
Unregisters an actor in the actor counter.
Sends a typed message to an actor.
Sends a typed message to an actor.
Sends a typed message to an actor with the corresponding id.
Sends a shutdown signal to all actors.
Registers a shutdown future.
Waits for all actors to shutdown gracefully.
Type Definitions
Actor identifier marker trait for the actor registry.
A boxed ErasedTx.
A boxed Message.
A strong typed reference to the spawned actor.
A strong erased reference to the spawned actor.
A weak typed reference to the spawned actor.
A weak erased reference to the spawned actor.