pub enum NodeKind {
Signal,
Effect,
Computed,
}Expand description
Kind discriminator for ReactiveNode. Carried separately from
NodeData so dependency-graph walks can branch on kind without
matching the data variant (the variants carry mutable state that we
generally don’t want to touch during graph walks).
Variants§
Signal
Mutable reactive value. Subscribers re-run when it changes.
Effect
Side-effecting reactive computation. Has no return value observable to other nodes; runs once on registration and again whenever a tracked source changes.
Computed
Derived value. Like an effect, but caches its return so downstream readers can observe it through the same dependency mechanism as a signal.
Trait Implementations§
impl Copy for NodeKind
impl Eq for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more