Modules
Structs
- Error returned by
start()
. - A message wrapper type that enables returning results through the result channel packed inside it.
Enums
- Error returned by the actor query functions.
- Actor lifecycle states.
Traits
- Actor trait that all generic (non-specialized) actors must implement.
- A restricted interface of
Actor
that provides send mechanics and state reads. - Forwards the message to the respective mailbox.
- Handler for specifying message handling logic.
- Used to call arbitrary code on state changes.
- Trait indicating that the type is a message.
- Used to call arbitrary code on a task actor.
- Actor trait that all generic (non-specialized) actors must implement.
- A restricted interface of
TaskActor
that provides closing and state reads. - Private trait used by
Task
implementations to have access to the context associated type.
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 with the corresponding id.
- 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 id type for the actor registry.
- 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.