pub fn with_ref<R>(f: impl FnOnce(&ProcessState) -> R) -> R
Shared access to the active process state.