Skip to main content

SupervisionFailureReaction

Type Alias SupervisionFailureReaction 

Source
pub type SupervisionFailureReaction<B> = fn(&mut B, &SupervisionFailure<<B as Behavior>::Addr>) -> Result<Become<<B as Behavior>::Addr>, <B as Behavior>::Error>;
Expand description

Pure policy applied when a supervisor cannot preserve its child topology.

A function pointer keeps the policy concrete, non-capturing, allocation free, and statically dispatched. It may update the wrapped behavior as part of the same serialized fold and chooses only its next behavior; it cannot interpret effects or consult runtime state.