Module bastion::supervisor [−][src]
Expand description
Supervisors enable users to supervise a subtree of children or other supervisor trees under themselves.
Structs
The strategy for a supervisor which is used for restoring failed actors. It it fails after N attempts, the supervisor will remove an actor.
A supervisor that can supervise both Children
and other
supervisors using a defined SupervisionStrategy
(set
with with_strategy
or SupervisionStrategy::OneForOne
by default).
A “reference” to a Supervisor
, allowing to
communicate with it.
Enums
The strategy for restating an actor as far as it returned an failure.
The restart policy which is used during restoring failed actors by the supervisor.
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).