pub struct TimerHandle<T> { /* private fields */ }Expand description
Handle to a scheduled timer.
Returned by TimerWheel::schedule and
TimerWheel::try_schedule. Must be
consumed by one of:
TimerWheel::cancel— unlinks from the wheel and extracts the value.TimerWheel::free— releases the handle, converting to fire-and-forget.
Dropping without consuming is a programming error (debug_assert! fires).
§Size
8 bytes (one pointer). !Send, !Sync, !Clone, !Copy.
Trait Implementations§
Source§impl<T> Debug for TimerHandle<T>
impl<T> Debug for TimerHandle<T>
Auto Trait Implementations§
impl<T> Freeze for TimerHandle<T>
impl<T> !RefUnwindSafe for TimerHandle<T>
impl<T> !Send for TimerHandle<T>
impl<T> !Sync for TimerHandle<T>
impl<T> Unpin for TimerHandle<T>
impl<T> UnsafeUnpin for TimerHandle<T>
impl<T> !UnwindSafe for TimerHandle<T>
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