Skip to main content

write_program_resume_clear

Function write_program_resume_clear 

Source
pub fn write_program_resume_clear<W: Write>(
    w: &mut W,
    pid: u32,
    time: u64,
    token: &str,
) -> Result<()>
Expand description

Write one clear report for pid without flushing.

The terminal removes the record for pid. Send it when the user ends the program, not when the program exits because the terminal closed. pid, time, and token follow the rules of write_program_resume.