Skip to main content

TurnOutcome

Type Alias TurnOutcome 

Source
pub type TurnOutcome = GoalProgress;
Expand description

Outcome of running one continuation turn through the external-scheduler driver (super::run_continuation_tick). Identical in shape to GoalProgress; named distinctly at the driver boundary for clarity.

Aliased Type§

pub struct TurnOutcome {
    pub tokens_used: u64,
    pub elapsed_secs: u64,
    pub made_progress: bool,
}

Fields§

§tokens_used: u64

Tokens spent by the work iteration that just finished.

§elapsed_secs: u64

Wall-clock seconds spent by the work iteration that just finished.

§made_progress: bool

Whether the iteration advanced the objective. A false here stops the self-driving loop (one-shot suppression) so it cannot spin uselessly.