Skip to main content

Timer

Trait Timer 

Source
pub trait Timer {
    // Required method
    fn cancel(&self);
}
Expand description

A timer from Scheduler::schedule.

Required Methods§

Source

fn cancel(&self)

Stops the timer from firing. Does nothing once it has fired.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§