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.

Trait Implementations

impl Drop for Guard

fn drop(&mut self)

Derived Implementations

impl Clone for Guard

fn clone(&self) -> Guard

fn clone_from(&mut self, source: &Self)