pub struct TimerHandle { /* private fields */ }Expand description
Handle to an active interval or delay. Can be cancelled by calling .cancel().
Important: Dropping the handle does NOT cancel the timer — the timer continues running on the host. To retain the ability to cancel, store the handle in cell state so it persists across handler invocations.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimerHandle
impl<'de> Deserialize<'de> for TimerHandle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TimerHandle
impl RefUnwindSafe for TimerHandle
impl Send for TimerHandle
impl Sync for TimerHandle
impl Unpin for TimerHandle
impl UnsafeUnpin for TimerHandle
impl UnwindSafe 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