pub trait DeathRecipient: Send + Sync {
// Required method
fn binder_died(&self, who: &WIBinder);
}Expand description
Interface for receiving a notification when a binder object is no longer valid.
This trait corresponds to the parts of the interface of the C++ DeathRecipient
Callback interface for binder death notifications.
Implement this trait to receive notifications when a remote binder object dies. This is essential for cleanup and error handling in distributed systems.
Required Methods§
Sourcefn binder_died(&self, who: &WIBinder)
fn binder_died(&self, who: &WIBinder)
Called when the monitored binder object has died.