Skip to main content

TimerHandle

Trait TimerHandle 

Source
pub trait TimerHandle: Send + 'static {
    // Required method
    fn cancel(self);
}
Expand description

A handle to a scheduled timer that can be cancelled.

Required Methods§

Source

fn cancel(self)

Cancel the timer. Idempotent — calling cancel on an already-cancelled or fired timer is a no-op.

Implementors§