[][src]Module bastion::supervisor

Supervisors enable users to supervise a subtree of children or other supervisor trees under themselves.

Structs

RestartStrategy

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 Children and other supervisors using a defined SupervisionStrategy (set with with_strategy or SupervisionStrategy::OneForOne by default).

SupervisorRef

A "reference" to a Supervisor, allowing to communicate with it.

Enums

ActorRestartStrategy

The strategy for restating an actor as far as it returned an failure.

RestartPolicy

The restart policy which is used during restoring failed actors by the supervisor.

SupervisionStrategy

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).