Skip to main content

Module plugin

Module plugin 

Source
Expand description

Bus scheduling, serving policy, and wake-driven app execution.

let wake = rig_ecs::bus::Wake::default();
wake.signal();
assert!(wake.take());

Structs§

BusPlugin
The bus: RigSchedule with its sets and systems after Update, the counters, the handler table, the observers, the Wake and its runner.
Policy
The world’s ServingPolicy, as a resource.
RigEnd
Runs after RigSchedule and its deferred commands in every app update. Replay adapters can install idle-pass diagnosis here.
RigSchedule
The schedule the bus runs in, once per app update, after Update. Users add their systems here, ordered against BusSets.
Wake
A shared signal requesting another app update, raised by completed tasks, stream delivery, or host systems needing a later pass. Each signal advances Wake::generation and wakes blocking and async waiters; signalling requires only shared access to the resource.

Enums§

BusSet
Ordered sets of RigSchedule: gate pending effects, dispatch, collect and record answers, then apply policy replacements.

Functions§

woken_runner
A runner that updates the app whenever Wake is raised, or every idle at most, until the app asks to exit. Install with app.set_runner(woken_runner(..)); BusPlugin installs it by default.