CanTerminate

Trait CanTerminate 

Source
pub trait CanTerminate: BuilderState { }
Expand description

Marks a builder whose child can terminate without being restarted.

This trait is sealed, and exists only to gate ChildBuilder::with_significant: significance asks what the supervisor should do when a child terminates and isn’t brought back, so it means nothing for a child that always is. Implemented by OneShot and Terminable.

Implementors§