Skip to main content

Dispose

Trait Dispose 

pub trait Dispose {
    // Required method
    fn dispose(self);
}
Expand description

Allows disposing an arena-allocated signal before its owner has been disposed.

Required Methodsยง

fn dispose(self)

Disposes of the signal. This:

  1. Detaches the signal from the reactive graph, preventing it from triggering further updates; and
  2. Drops the value contained in the signal.

Dyn Compatibilityยง

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Typesยง

ยง

impl<T, S> Dispose for Store<T, S>
where T: 'static,

ยง

fn dispose(self)

Implementorsยง

ยง

impl Dispose for ImmediateEffect

ยง

impl Dispose for Trigger

ยง

impl<I, O, S> Dispose for MultiAction<I, O, S>

ยง

impl<I, O> Dispose for Action<I, O>

ยง

impl<In, Out> Dispose for Callback<In, Out>

ยง

impl<In, Out> Dispose for UnsyncCallback<In, Out>

ยง

impl<S> Dispose for Effect<S>

ยง

impl<T, S> Dispose for ArenaItem<T, S>

ยง

impl<T, S> Dispose for AsyncDerived<T, S>

ยง

impl<T, S> Dispose for Memo<T, S>
where S: Storage<T>,

ยง

impl<T, S> Dispose for ReadSignal<T, S>

ยง

impl<T, S> Dispose for RwSignal<T, S>

ยง

impl<T, S> Dispose for Signal<T, S>
where S: Storage<T>,

ยง

impl<T, S> Dispose for StoredValue<T, S>

ยง

impl<T, S> Dispose for WriteSignal<T, S>