We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04b84de commit 37068faCopy full SHA for 37068fa
src/procrs/pid/mod.rs
@@ -23,6 +23,7 @@ use TaskId;
23
/// /proc/[pid] directory (for the respective pid).
24
#[derive(Debug)]
25
pub struct Pid {
26
+ // FIXME: Take Vec<PidFile> to indicate which things to parse
27
/// The tid of this process
28
pub pid: TaskId,
29
/// The /proc/[pid]/stat file
@@ -140,6 +141,13 @@ impl Ord for Pid {
140
141
}
142
143
144
+/// A list of files in the pid directory.
145
+enum PIdFiles {
146
+ PidStatus,
147
+ PidStat,
148
+ PidCmdline
149
+}
150
+
151
/// An Iterator over processes in the system.
152
///
153
/// If a process disappears while scanning it, the partial Pid struct
0 commit comments