pub struct IntervalHandle { /* private fields */ }Expand description
A handle to a browser interval timer created by use_interval.
Stores the numeric interval ID returned by window.setInterval so the
timer can be cancelled later via clear_interval.
Implementations§
Source§impl IntervalHandle
Implementation of interval handle lifecycle management.
impl IntervalHandle
Implementation of interval handle lifecycle management.
Source§impl IntervalHandle
impl IntervalHandle
pub fn get_interval_id(&self) -> i32
Source§impl IntervalHandle
impl IntervalHandle
pub fn new(interval_id: i32) -> IntervalHandle
Trait Implementations§
Source§impl Clone for IntervalHandle
impl Clone for IntervalHandle
Source§fn clone(&self) -> IntervalHandle
fn clone(&self) -> IntervalHandle
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 moreimpl Copy for IntervalHandle
Source§impl Debug for IntervalHandle
impl Debug for IntervalHandle
Source§impl Default for IntervalHandle
impl Default for IntervalHandle
Source§fn default() -> IntervalHandle
fn default() -> IntervalHandle
Returns the “default value” for a type. Read more
impl Eq for IntervalHandle
Source§impl Hash for IntervalHandle
impl Hash for IntervalHandle
Source§impl Ord for IntervalHandle
impl Ord for IntervalHandle
Source§fn cmp(&self, other: &IntervalHandle) -> Ordering
fn cmp(&self, other: &IntervalHandle) -> Ordering
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 PartialEq for IntervalHandle
impl PartialEq for IntervalHandle
Source§fn eq(&self, other: &IntervalHandle) -> bool
fn eq(&self, other: &IntervalHandle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IntervalHandle
impl PartialOrd for IntervalHandle
impl StructuralPartialEq for IntervalHandle
Auto Trait Implementations§
impl Freeze for IntervalHandle
impl RefUnwindSafe for IntervalHandle
impl Send for IntervalHandle
impl Sync for IntervalHandle
impl Unpin for IntervalHandle
impl UnsafeUnpin for IntervalHandle
impl UnwindSafe for IntervalHandle
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