Skip to main content

Module proto

Module proto 

Source
Expand description

Message types for remote supervision sessions.

A remote supervision relationship is represented by one worker actor supervising one child actor on behalf of one supervisor. The supervisor initiates the relationship by sending Supervise to the worker. The supervisor port in Supervise identifies the session endpoint that the worker uses for all replies and supervision events. The liveness spec in Supervise identifies the implementation actor that the worker spawns as the session liveness mechanism. Later supervisor commands are sent to the worker as WorkerCommand messages and carry the same session_id; the worker accepts only the active session.

Structs§

Gspawn
Global actor spawn (gspawn) specification.
SpawnActor
Request sent to an actor spawner to spawn and supervise one registered actor.
SpawnProc
Request sent to a proc-spawner endpoint to spawn and supervise one proc.
Supervise
Request sent by a supervisor proxy to a worker actor.
SupervisionOptions
Options that govern a remote supervision session.
WorkerLike
The generated behavior struct.

Enums§

OrphanPolicy
Worker behavior when its supervisor session is orphaned.
RemoteActorDisposition
What a worker-side event establishes about the supervised child.
SupervisorEvent
Messages sent by the worker actor to the supervisor session port.
WorkerCommand
Commands sent by the supervisor proxy to the supervised worker actor.

Traits§

SpawnActorClient
The custom client trait for this message type.
SpawnActorHandler
The custom handler trait for this message type.
SpawnProcClient
The custom client trait for this message type.
SpawnProcHandler
The custom handler trait for this message type.
SuperviseClient
The custom client trait for this message type.
SuperviseHandler
The custom handler trait for this message type.
WorkerCommandClient
The custom client trait for this message type.
WorkerCommandHandler
The custom handler trait for this message type.