Skip to main content

keep_job_record

Function keep_job_record 

Source
fn keep_job_record(job: &Job, dir: &Path, record: &TakeRecord<'_>)
Expand description

Keep one direct job’s diagnostics record.

The token is the job’s own, read here rather than passed in, so the write cannot be wired to a different take’s cancel. The caller has already decided the job earns a record: it is a direct job, the engine is not stopping, and its answer classified as one worth keeping.