pub struct CallbackHandle { /* private fields */ }Expand description
RAII callback registration. Dropping an unfired/live handle removes the simulator callback — this is what makes drop-based task cancellation (design-doc §4.6) clean up trigger registrations for free.
Implementations§
Trait Implementations§
Source§impl Drop for CallbackHandle
impl Drop for CallbackHandle
Auto Trait Implementations§
impl !RefUnwindSafe for CallbackHandle
impl !Send for CallbackHandle
impl !Sync for CallbackHandle
impl !UnwindSafe for CallbackHandle
impl Freeze for CallbackHandle
impl Unpin for CallbackHandle
impl UnsafeUnpin 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