Skip to main content

Dispose

Trait Dispose 

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

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

Required Methods§

Source

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§

Source§

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

Implementors§

Source§

impl Dispose for ImmediateEffect

Source§

impl Dispose for Trigger

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<S> Dispose for Effect<S>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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