Struct starnix_lifecycle::DropNotifier
source · pub struct DropNotifier { /* private fields */ }
Expand description
DropNotifier allows a client to be notified when is is dropped.
An object that has client that needs to be notified when it is dropped can keep a
DropNotifier
in its member. Client can then request a waiter from it. When the DropNotifier
is dropped, the waiter
will be signaled with a PEER_CLOSED event.
Implementations§
source§impl DropNotifier
impl DropNotifier
Trait Implementations§
source§impl Debug for DropNotifier
impl Debug for DropNotifier
Auto Trait Implementations§
impl Freeze for DropNotifier
impl RefUnwindSafe for DropNotifier
impl Send for DropNotifier
impl Sync for DropNotifier
impl Unpin for DropNotifier
impl UnwindSafe for DropNotifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more