pub struct TimerHandle { /* private fields */ }Expand description
A handle that cancels its timer when it is dropped.
Dropping the handle cancels the timer, and so does cleaning up the owner the timer was created under, whichever happens first. A repeating timer that should outlive the scope it was created in keeps its handle alive for as long as it should run.
Trait Implementations§
Source§impl Drop for TimerHandle
impl Drop for TimerHandle
Auto Trait Implementations§
impl !RefUnwindSafe for TimerHandle
impl !Send for TimerHandle
impl !Sync for TimerHandle
impl !UnwindSafe for TimerHandle
impl Forget for TimerHandle
impl Freeze for TimerHandle
impl Move for TimerHandle
impl Unpin for TimerHandle
impl UnsafeUnpin for TimerHandle
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