pub struct TimerHandle {
pub cancellation_token: CancellationToken,
/* private fields */
}Expand description
Handle returned by send_after and send_interval.
Cancel the timer by calling timer.cancellation_token.cancel().
Timers are also automatically cancelled when the actor stops.
Fields§
§cancellation_token: CancellationTokenAuto 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