Struct leptos_dom::helpers::IdleCallbackHandle
source · pub struct IdleCallbackHandle(_);
Expand description
Handle that is generated by request_idle_callback_with_handle and can be used to cancel the idle callback.
Implementations§
source§impl IdleCallbackHandle
impl IdleCallbackHandle
sourcepub fn cancel(&self)
pub fn cancel(&self)
Cancels the idle callback to which this refers.
See cancelAnimationFrame()
Trait Implementations§
source§impl Clone for IdleCallbackHandle
impl Clone for IdleCallbackHandle
source§fn clone(&self) -> IdleCallbackHandle
fn clone(&self) -> IdleCallbackHandle
Returns a copy of the value. Read more
1.0.0 · 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 IdleCallbackHandle
impl Debug for IdleCallbackHandle
source§impl Hash for IdleCallbackHandle
impl Hash for IdleCallbackHandle
source§impl PartialEq<IdleCallbackHandle> for IdleCallbackHandle
impl PartialEq<IdleCallbackHandle> for IdleCallbackHandle
source§fn eq(&self, other: &IdleCallbackHandle) -> bool
fn eq(&self, other: &IdleCallbackHandle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IdleCallbackHandle
impl Eq for IdleCallbackHandle
impl StructuralEq for IdleCallbackHandle
impl StructuralPartialEq for IdleCallbackHandle
Auto Trait Implementations§
impl RefUnwindSafe for IdleCallbackHandle
impl Send for IdleCallbackHandle
impl Sync for IdleCallbackHandle
impl Unpin for IdleCallbackHandle
impl UnwindSafe for IdleCallbackHandle
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> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.