pub enum Control {
Broadcast,
Unchanged,
Terminate,
Sweep,
}Expand description
Controls how a node’s execution affects the broader computation graph.
Returned by a node’s cycle function to indicate what should happen after the node completes execution.
Variants§
Broadcast
Schedule all nodes with Trigger relationships to this node.
Use when this node has mutated and downstream nodes should react to the changes.
Unchanged
This node did not change - don’t schedule any dependent nodes.
Use when the node has processed data but its state didn’t change in a way that would affect downstream computations.
Terminate
Signal the entire runtime to terminate gracefully.
Use when a critical condition is met and the entire stream processing pipeline should shut down.
Sweep
Mark this node for removal from the graph.
Use when this node has completed its purpose and should be cleaned up. The node will be removed after the current cycle.
Implementations§
Source§impl Control
impl Control
Sourcepub fn is_broadcast(&self) -> bool
pub fn is_broadcast(&self) -> bool
Returns true if this is a Control::Broadcast, otherwise false
Sourcepub fn is_unchanged(&self) -> bool
pub fn is_unchanged(&self) -> bool
Returns true if this is a Control::Unchanged, otherwise false
Sourcepub fn is_terminate(&self) -> bool
pub fn is_terminate(&self) -> bool
Returns true if this is a Control::Terminate, otherwise false
Trait Implementations§
impl Copy for Control
impl Eq for Control
impl StructuralPartialEq for Control
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.