Skip to main content

Module supervision

Module supervision 

Source
Expand description

Supervision.

Structs§

AllForOneStrategy
Builder for AllForOne.
OneForOneStrategy
Builder for OneForOne — the default.
SupervisionError
Generic boxed-string error suitable for SupervisorOf impls that don’t yet have a typed error story (e.g. wrapping a panic payload). New code should prefer a domain-specific #[derive(thiserror::Error)] enum instead.
SupervisorStrategy
Strategy applied to children of a supervising actor. Splits into OneForOne (each child handled independently) and AllForOne (one child’s failure restarts all siblings).

Enums§

Directive
What the supervisor decides when a child fails.
StrategyKind

Traits§

SupervisorOf
A parent actor’s typed supervision policy for a specific child type C. Opt-in only — see module docs.

Type Aliases§

Decider