pub struct Process {
pub number: u32,
pub pid: Option<u32>,
pub parent: Option<u32>,
pub programs: Vec<Program>,
pub status: Option<Termination>,
}Expand description
One traced process: a thread group, whose threads fold into it.
Fields§
§number: u32The number of the process, unique within the run: processes are numbered from 1 in the order the tracer saw them start, and process 1 is the command.
pid: Option<u32>The process ID that the system gave it, or None when none is known, as
for a fake tracer or a command whose process never started.
parent: Option<u32>The number of the process that created it, or None for the command and
for a process whose creation the tracer never saw.
programs: Vec<Program>The programs it ran, in order.
status: Option<Termination>How it ended, or None when the tracer did not see it end, or the command
could not start.
Trait Implementations§
impl Eq for Process
impl StructuralPartialEq for Process
Auto Trait Implementations§
impl Freeze for Process
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnsafeUnpin for Process
impl UnwindSafe for Process
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more