pub trait DeadLetterObserver:
Send
+ Sync
+ 'static {
// Required method
fn on_dead_letter(
&self,
recipient: &ActorPath,
sender: Option<&ActorPath>,
message_type: &'static str,
);
}Expand description
Implementors are notified whenever a tell fails because the target
actor has stopped. Called on the caller’s thread, so implementers
should be cheap.