Skip to main content

Module context

Module context 

Source
Expand description

The one aggregate a caller and the agent both read.

PrintContext is the supervision domain’s own view of one print: the record, the printer and job as the printer port last reported them, the manifest and the bounds in force, the interventions still active and the events most recently written down. The loop collects it when it handles an event, holds it for the turn that event prompts, and answers it to the context operation, so what the agent reasons about is the state the event was handled at rather than whatever the machine has drifted to since.

It is declared here rather than centrally because every field of it is this domain’s to collect: a domain that adds a fact a turn should see edits this crate and regenerates the clients, and nothing central.

Structs§

PrintContext
Everything a supervision turn is given about one print.