Struct timer::Guard [] [src]

pub struct Guard { /* fields omitted */ }

A value scoping a schedule. When this value is dropped, the schedule is cancelled.

Methods

impl Guard
[src]

[src]

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 Clone for Guard
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for Guard
[src]

[src]

Cancel a schedule.