pub struct Timer {
pub id: TimerId,
pub callback: JSValue,
pub args: Vec<JSValue>,
pub deadline: Instant,
pub is_interval: bool,
pub interval: Option<Duration>,
}Fields§
§id: TimerId§callback: JSValue§args: Vec<JSValue>§deadline: Instant§is_interval: bool§interval: Option<Duration>Trait Implementations§
Source§impl Ord for Timer
impl Ord for Timer
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Timer
impl PartialOrd for Timer
impl Eq for Timer
Auto Trait Implementations§
impl Freeze for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnsafeUnpin for Timer
impl UnwindSafe for Timer
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