Expand description
Supervisors enable users to supervise a subtree of children or other supervisor trees under themselves.
Structs§
- Restart
Strategy - The strategy for a supervisor which is used for restoring failed actors. It it fails after N attempts, the supervisor will remove an actor.
- Supervisor
- A supervisor that can supervise both
Childrenand other supervisors using a definedSupervisionStrategy(set withwith_strategyorSupervisionStrategy::OneForOneby default). - Supervisor
Ref - A “reference” to a
Supervisor, allowing to communicate with it.
Enums§
- Actor
Restart Strategy - The strategy for restating an actor as far as it returned an failure.
- Restart
Policy - The restart policy which is used during restoring failed actors by the supervisor.
- Supervision
Strategy - The strategy a supervisor should use when one of its supervised children groups or supervisors dies (in the case of a children group, it could be because one of its elements panicked or returned an error).