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.
- Remotable
Actor - A RemotableActor may be spawned remotely, and receive messages across process boundaries.
- Remote
Actor - RemoteActor is a marker trait for types that can be used as
remote actor references. All
Actor
s are thus referencable; but other types may also implement this in order to separately specify actor interfaces. - Remote
Handles - Handles is a marker trait specifying that message type [
M
] is handled by a specific actor type.