pub struct IntervalHandle {
pub interval_id: i32,
}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.
Fields§
§interval_id: i32The interval ID assigned by the browser.
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
pub fn set_interval_id(&mut self, val: i32) -> &mut Self
pub fn get_mut_interval_id(&mut self) -> &mut i32
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 moreSource§impl PartialEq for IntervalHandle
Compares interval handles by their interval ID.
impl PartialEq for IntervalHandle
Compares interval handles by their interval ID.
impl Copy 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