Trait ReactiveNode

Source
pub trait ReactiveNode {
    // Required methods
    fn mark_dirty(&self);
    fn mark_check(&self);
    fn mark_subscribers_check(&self);
    fn update_if_necessary(&self) -> bool;
}
Expand description

A node in the reactive graph.

Required Methods§

Source

fn mark_dirty(&self)

Notifies the source’s dependencies that it has changed.

Source

fn mark_check(&self)

Notifies the source’s dependencies that it may have changed.

Source

fn mark_subscribers_check(&self)

Marks that all subscribers need to be checked.

Source

fn update_if_necessary(&self) -> bool

Regenerates the value for this node, if needed, and returns whether it has actually changed or not.

Implementations on Foreign Types§

Source§

impl ReactiveNode for RwLock<ArcAsyncDerivedInner>

Source§

impl ReactiveNode for RwLock<EffectInner>

Source§

impl ReactiveNode for RwLock<EffectInner>

Source§

impl ReactiveNode for RwLock<SubscriberSet>

Implementors§

Source§

impl ReactiveNode for AnySource

Source§

impl ReactiveNode for AnySubscriber

Source§

impl<T> ReactiveNode for ArcAsyncDerived<T>

Source§

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

Source§

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

Source§

impl<T: AsSubscriberSet + DefinedAt> ReactiveNode for T