Expand description
Traits and type definitions for actor address.
In the actor model, an Address is a handle to an actor. It is the only way to interact
with an actor since the runtime will take the ownership of the actor itself after it is
spawned.
This module defines the Address type for an actor. It also provides the Sender trait
and a Recipient type which are alternative ways to organize the addresses of actors.
Structs§
- Address
- The address of an actor.
- Mailbox
- The mailbox of an actor, which holds a queue of messages to be processed by the actor.
- Owned
Send Permit - Owned permit to send one message to an actor.
- Recipient
- A type which is used to send a specific message type to an actor.
- Send
Permit - Permit to send one message to an actor.