Struct leptos::ScopeDisposer
source · pub struct ScopeDisposer(_);Expand description
Creating a Scope gives you a disposer, which can be called to dispose of that reactive scope.
This will
- dispose of all child
Scopes - run all cleanup functions defined for this scope by on_cleanup.
- dispose of all signals, effects, and resources owned by this
Scope.
Implementations§
source§impl ScopeDisposer
impl ScopeDisposer
sourcepub fn dispose(self)
pub fn dispose(self)
Disposes of a reactive Scope.
This will
- dispose of all child
Scopes - run all cleanup functions defined for this scope by on_cleanup.
- dispose of all signals, effects, and resources owned by this
Scope.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ScopeDisposer
impl !Send for ScopeDisposer
impl !Sync for ScopeDisposer
impl Unpin for ScopeDisposer
impl !UnwindSafe for ScopeDisposer
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