Struct timer::Guard
[−]
[src]
pub struct Guard { // some fields omitted }
A value scoping a schedule. When this value is dropped, the schedule is cancelled.
Methods
impl Guard
fn ignore(self)
Ignores the guard, preventing it from disabling the scheduled item. This can be used to avoid maintaining a Guard handle for items that will never be cancelled.