Skip to main content

Module supervision

Module supervision 

Source
Expand description

Supervision.

Structs§

AllForOneStrategy
Builder for AllForOne.
OneForOneStrategy
Builder for OneForOne — the default.
PanicPayload
Structured panic payload carried via std::panic::panic_any so that language-binding actors (Python, etc.) can attach typed failure metadata that the decider can inspect by class name. The actor_cell panic-catch path renders this as "<module>.<qualname>: <repr>" for the legacy Decider: Fn(&str) surface; deciders wishing to match by class can split on the first ": " boundary.
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