pub struct TimerEntry {
pub id: u32,
pub callback_id: usize,
pub fire_at: u64,
pub interval: u64,
pub cancelled: bool,
}Expand description
Timer entry for setTimeout/setInterval
Fields§
§id: u32Unique timer ID
callback_id: usizeJS callback function ID
fire_at: u64Tick at which this timer fires
interval: u64Repeat interval (0 = one-shot)
cancelled: boolWhether this timer has been cancelled
Trait Implementations§
Source§impl Clone for TimerEntry
impl Clone for TimerEntry
Source§fn clone(&self) -> TimerEntry
fn clone(&self) -> TimerEntry
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TimerEntry
impl RefUnwindSafe for TimerEntry
impl Send for TimerEntry
impl Sync for TimerEntry
impl Unpin for TimerEntry
impl UnwindSafe for TimerEntry
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)