Trait leptos::SignalSetUntracked

source ·
pub trait SignalSetUntracked<T> {
    // Required methods
    fn set_untracked(&self, new_value: T);
    fn try_set_untracked(&self, new_value: T) -> Option<T>;
}
Expand description

Trait implemented for all signal types which you can set the inner value, such as WriteSignal and RwSignal, which allows setting the inner value without causing effects which depend on the signal from being run.

Required Methods§

source

fn set_untracked(&self, new_value: T)

Sets the signal’s value without notifying dependents.

source

fn try_set_untracked(&self, new_value: T) -> Option<T>

Attempts to set the signal if it’s still valid. Returns None if the signal was set, [Some(T)] otherwise.

Implementors§

source§

impl<T> SignalSetUntracked<T> for RwSignal<T>

source§

impl<T> SignalSetUntracked<T> for WriteSignal<T>
where T: 'static,