Module supervisor

Source

Structs§

Supervisor
The supervisor actor itself.
Spawns its children in post_start, listens for child failures, and restarts them if needed.
If meltdown occurs, it returns an error to end abnormally (thus skipping post_stop).
SupervisorArguments
The arguments needed to spawn the supervisor.
SupervisorOptions
Supervisor-level meltdown policy.
SupervisorState
Holds the supervisor’s live state: which children are running, how many times each child has failed, etc.

Enums§

SupervisorMsg
Internal messages that instruct the supervisor to spawn a child, triggered by its meltdown logic.
SupervisorStrategy
The supervision strategy for this supervisor’s children.