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]
fn ignore(self)
[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]
fn clone(&self) -> Guard
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more