pub fn emit_progress<T: Serialize>(code: &str, payload: &T) -> Result<(), Error>
Emit one non-terminal progress event. Only commands that block on a person have anything to report before their result.