pub fn read_process(pid: u32) -> Option<ProcessInfo>Expand description
Read the full ProcessInfo snapshot for one pid. status is required
(its Uid:/Name: fields anchor the snapshot); stat, exe, and
cgroup are each best-effort and simply left at their default/None if
unreadable (e.g. the process exited mid-read, or exe requires
permissions we don’t have). Returns None only if status can’t be read
or parsed.