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.
Required Methods§
fn on_dead_letter( &self, recipient: &ActorPath, sender: Option<&ActorPath>, message_type: &'static str, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".