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§
Sourcefn mark_dirty(&self)
fn mark_dirty(&self)
Notifies the source’s dependencies that it has changed.
Sourcefn mark_check(&self)
fn mark_check(&self)
Notifies the source’s dependencies that it may have changed.
Sourcefn mark_subscribers_check(&self)
fn mark_subscribers_check(&self)
Marks that all subscribers need to be checked.
Sourcefn update_if_necessary(&self) -> bool
fn update_if_necessary(&self) -> bool
Regenerates the value for this node, if needed, and returns whether it has actually changed or not.