pub struct CallbackHandle { /* private fields */ }Expand description
Owns a resource that must be cleaned up when the owning TaskScope
is dropped.
Currently used for signal subscriptions registered by the bind_*
functions. When the TaskScope drops, every registered
CallbackHandle is dropped, which calls the stored cleanup closure
to unsubscribe from the signal.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallbackHandle
impl !RefUnwindSafe for CallbackHandle
impl !Send for CallbackHandle
impl !Sync for CallbackHandle
impl Unpin for CallbackHandle
impl UnsafeUnpin for CallbackHandle
impl !UnwindSafe for CallbackHandle
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