Struct NodeHandle
pub struct NodeHandle(/* private fields */);
Expand description
A handle to a reactive node (signal, memo, effect) that lets you run further tasks in it or manually dispose it.
Implementations§
§impl NodeHandle
impl NodeHandle
pub fn dispose(self)
pub fn dispose(self)
Disposes the node that is being referenced by this handle. If the node has already been disposed, this does nothing.
Automatically calls NodeHandle::dispose_children
.
pub fn dispose_children(self)
pub fn dispose_children(self)
Dispose all the children of the node but not the node itself.
Trait Implementations§
§impl Clone for NodeHandle
impl Clone for NodeHandle
§fn clone(&self) -> NodeHandle
fn clone(&self) -> NodeHandle
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 moreimpl Copy for NodeHandle
Auto Trait Implementations§
impl Freeze for NodeHandle
impl !RefUnwindSafe for NodeHandle
impl !Send for NodeHandle
impl !Sync for NodeHandle
impl Unpin for NodeHandle
impl !UnwindSafe for NodeHandle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)