pub trait ExitHandler:
Debug
+ Send
+ Sync
+ 'static {
// Required method
fn on_actor_exit(&self, actor_id: ActorID, exit: Exit);
}Expand description
ExitHandler is an entity that is notified when an actor exits.
Each actor has an ExitHandler associated with it.
It is possible to specify an exit-handler for an actor via
SpawnOpts::with_exit_handler.