pub fn encode_report(
pid: u32,
time: u64,
argv: &[String],
cwd: Option<&str>,
token: &str,
) -> Result<String>Expand description
Encode a resume report for pid made at time.
argv is the command the terminal runs to bring the program back; cwd
is the absolute directory to run it in. Fails closed on any malformed
input so callers never emit a report the terminal would reject.