Expand description
This module contains all the core traits required to define and manage actors.
Modules§
- remote
- Management of actor registration for remote spawning.
Structs§
- Actor
Error - Errors that occur while serving actors. Each error is associated with the ID of the actor being served.
- Actor
Handle - ActorHandles represent a (local) serving actor. It is used to access its messaging and signal ports, as well as to synchronize with its lifecycle (e.g., providing joins). Once dropped, the handle is detached from the underlying actor instance, and there is no longer any way to join it.
Enums§
- Actor
Error Kind - The kinds of actor serving errors.
- Actor
Status - The runtime status of an actor.
- Signal
- A collection of signals to control the behavior of the actor. Signals are internal runtime control plane messages and should not be sent outside of the runtime.
Traits§
- Actor
- An Actor is an independent, asynchronous thread of execution. Each
actor instance has a mailbox, whose messages are delivered through
the method [
Actor::handle
]. - Binds
- Binds determines how an actor’s ports are bound to a specific reference type.
- Handler
- A Handler allows an actor to handle a specific message type.
- Referable
Referable
is a marker trait for types that can appear as remote references across process boundaries.- Remotable
Actor - An
Actor
that can be spawned remotely. - Remote
Handles - Handles is a marker trait specifying that message type [
M
] is handled by a specific actor type.
Functions§
- handle_
undeliverable_ message - Default implementation of
Actor::handle_undeliverable_message
. Defined as a free function so thatActor
implementations that overrideActor::handle_undeliverable_message
can fallback to this default.