Source

Trait Source 

Source
pub trait Source: ReactiveNode {
    // Required methods
    fn add_subscriber(&self, subscriber: AnySubscriber);
    fn remove_subscriber(&self, subscriber: &AnySubscriber);
    fn clear_subscribers(&self);
}
Expand description

Describes the behavior of any source of reactivity (like a signal, trigger, or memo.)

Required Methods§

Source

fn add_subscriber(&self, subscriber: AnySubscriber)

Adds a subscriber to this source’s list of dependencies.

Source

fn remove_subscriber(&self, subscriber: &AnySubscriber)

Removes a subscriber from this source’s list of dependencies.

Source

fn clear_subscribers(&self)

Remove all subscribers from this source’s list of dependencies.

Implementations on Foreign Types§

Source§

impl Source for RwLock<ArcAsyncDerivedInner>

Source§

impl Source for RwLock<SubscriberSet>

Implementors§

Source§

impl Source for AnySource

Source§

impl<T> Source for ArcAsyncDerived<T>

Source§

impl<T, S> Source for AsyncDerived<T, S>
where T: 'static, S: Storage<ArcAsyncDerived<T>>,

Source§

impl<T: 'static, S> Source for ArcMemo<T, S>
where S: Storage<T>,

Source§

impl<T: AsSubscriberSet + DefinedAt> Source for T