pub struct ScheduledTimer(/* private fields */);Expand description
Opaque reference to a scheduled instance of a timer
Use this to cancel the timer with cancel_timer.
Instances are returned from functions that schedule timers, such as schedule_once and schedule_periodic.
Implementations§
Source§impl ScheduledTimer
impl ScheduledTimer
Sourcepub fn from_uuid(id: Uuid) -> ScheduledTimer
pub fn from_uuid(id: Uuid) -> ScheduledTimer
Create a ScheduledTimer from a Uuid handle
Trait Implementations§
Source§impl Clone for ScheduledTimer
impl Clone for ScheduledTimer
Source§fn clone(&self) -> ScheduledTimer
fn clone(&self) -> ScheduledTimer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScheduledTimer
impl Debug for ScheduledTimer
Source§impl PartialEq for ScheduledTimer
impl PartialEq for ScheduledTimer
Source§fn eq(&self, other: &ScheduledTimer) -> bool
fn eq(&self, other: &ScheduledTimer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ScheduledTimer
impl StructuralPartialEq for ScheduledTimer
Auto Trait Implementations§
impl Freeze for ScheduledTimer
impl RefUnwindSafe for ScheduledTimer
impl Send for ScheduledTimer
impl Sync for ScheduledTimer
impl Unpin for ScheduledTimer
impl UnsafeUnpin for ScheduledTimer
impl UnwindSafe for ScheduledTimer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DispatchEvent for T
impl<T> DispatchEvent for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.