pub trait System: Send {
// Required method
fn run(&mut self, world: &mut World) -> bool;
// Provided method
fn name(&self) -> &'static str { ... }
}Expand description
Object-safe dispatch trait for reconciliation systems.
Returns bool to control downstream propagation in a DAG scheduler.
true means “my outputs changed, run downstream systems.”
false means “nothing changed, skip downstream.”
§Difference from Handler
| Handler | System | |
|---|---|---|
| Trigger | Per-event | Per-scheduler-pass |
| Event param | Yes (E) | No |
| Return | () | bool |
| Purpose | React | Reconcile |