Expand description
System actors for remote operations (spawn, watch, cancel, directory). System actors for remote operations.
When a node needs to perform a remote operation (spawn an actor, watch a remote actor, cancel a remote operation), it sends a message to a system actor on the target node. System actors are automatically started by the runtime and handle these requests.
§System Actor Types
SpawnManager— handles remote actor spawn requestsWatchManager— handles remote watch/unwatch subscriptionsCancelManager— handles remote cancellation requestsNodeDirectory— maps NodeId → connection metadata
§System Message Type Constants
Well-known WireEnvelope::message_type
values used by the transport router to dispatch incoming envelopes to the
correct system actor mailbox. See system_router.
Structs§
- Cancel
Manager - Manages remote cancellation requests.
- Cancel
Request - Request to cancel a remote operation.
- Handshake
Request - Information sent by a node when initiating a version handshake.
- Node
Directory - Maps
NodeIds to peer connection information. - Peer
Info - Metadata about a peer node.
- Spawn
Manager - Manages remote actor spawn requests on a node.
- Spawn
Request - Message requesting a remote actor spawn.
- System
Actor Config - Configuration for system actors spawned by the runtime.
- Unwatch
Request - Request to stop watching a remote actor.
- Watch
Manager - Manages remote watch/unwatch subscriptions.
- Watch
Notification - Notification that a watched actor has terminated.
- Watch
Request - Request to watch a remote actor for termination.
Enums§
- Cancel
Response - Acknowledgement of a cancel request.
- Handshake
Response - The result of a version handshake.
- Peer
Status - Connection status of a peer node.
- Rejection
Reason - Reason a version handshake was rejected.
- Spawn
Response - Response to a spawn request.
Constants§
- SYSTEM_
MSG_ TYPE_ CANCEL - Wire protocol identifier for
CancelRequestmessages. - SYSTEM_
MSG_ TYPE_ CONNECT_ PEER - Wire protocol identifier for peer connect messages routed to
NodeDirectory. - SYSTEM_
MSG_ TYPE_ DISCONNECT_ PEER - Wire protocol identifier for peer disconnect messages routed to
NodeDirectory. - SYSTEM_
MSG_ TYPE_ SPAWN - Wire protocol identifier for
SpawnRequestmessages. - SYSTEM_
MSG_ TYPE_ UNWATCH - Wire protocol identifier for
UnwatchRequestmessages. - SYSTEM_
MSG_ TYPE_ WATCH - Wire protocol identifier for
WatchRequestmessages.
Functions§
- is_
system_ message_ type - Returns
trueifmessage_typeis a well-known system message type. - validate_
handshake - Validate a remote node’s
HandshakeRequestagainst local configuration. - verify_
peer_ identity - Verify that an accepted handshake response came from the expected peer.