Skip to main content

ProcessTree

Struct ProcessTree 

Source
pub struct ProcessTree {
    pub processes: Vec<Process>,
}
Expand description

The processes of a run, in the order the tracer saw them start, each with its programs and their observations.

A process ID that the system gives to a new process within the run starts a new process, so two processes never merge. The kinds of each path, combined over every program, are exactly its kinds in the run’s combined accesses.

Fields§

§processes: Vec<Process>

The processes, numbered from 1, in order.

Implementations§

Source§

impl ProcessTree

Source

pub fn of_request( request: &RunRequest, accesses: &Accesses, status: Option<Termination>, ) -> Self

The tree of one process, the command of request, without a process ID, whose one program is the request’s program with its arguments, which touched every path of accesses with its kinds, each with the outcome ok, and which ended as status says. Fake tracers build their trees with it.

Source

pub fn of_run(request: &RunRequest, result: &RunResult) -> Self

The tree of one process, the command of request, built from the run’s whole result, as ProcessTree::of_request builds it from the result’s accesses and termination, with the result’s reason that the trace is incomplete, when it has one, its unknown system calls and its connections on the one program, where the Linux tracer puts them: on the program that made them. So the tree carries everything that the run reports, and a report built from it says what the run says. Fake tracers whose runs a test builds a report from build their trees with it; the tree of a failed start, which reports none of these, keeps the shape that of_request gives it.

Source

pub fn process(&self, number: u32) -> Option<&Process>

The process numbered number, if there is one.

Source

pub fn programs(&self) -> impl Iterator<Item = (&Process, &Program)>

Every program of every process, with its process, in order.

Source

pub fn observations(&self) -> Observations

The observations of every program, combined.

Source

pub fn accesses(&self) -> Accesses

The access kinds of every path of every program, combined, without the outcomes.

Source

pub fn connections(&self) -> BTreeSet<Connection>

The connections of every program, combined.

Source

pub fn unknown_system_calls(&self) -> BTreeSet<u32>

The unknown system calls of every program, combined.

Trait Implementations§

Source§

impl Clone for ProcessTree

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProcessTree

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ProcessTree

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for ProcessTree

Source§

impl PartialEq for ProcessTree

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ProcessTree

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.