Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7eb0d47 authored by Matthew Maurer's avatar Matthew Maurer
Browse files

binder: rust: Document DeathRecipient drop effects

Bug: 181953084
Test: None
Change-Id: I49911f5ebdcf0941f47683e554a0068e0fcda095
parent e268a9fc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -561,6 +561,9 @@ impl Drop for WpIBinder {
/// The cookie in this struct represents an Arc<F> for the owned callback.
/// This struct owns a ref-count of it, and so does every binder that we
/// have been linked with.
///
/// Dropping the `DeathRecipient` will `unlink_to_death` any binders it is
/// currently linked to.
#[repr(C)]
pub struct DeathRecipient {
    recipient: *mut sys::AIBinder_DeathRecipient,