pub struct Report {
pub commands: Vec<ReportCommand>,
pub task_program: Option<ReportTaskProgram>,
pub observations: Observations,
pub connections: BTreeSet<Connection>,
pub totals: Totals,
}Expand description
An observation report: its commands in the order they ran, the task program, every observation and connection combined, and the totals.
Fields§
§commands: Vec<ReportCommand>The commands, in the order they ran.
task_program: Option<ReportTaskProgram>The task program’s own accesses, for kizz run.
observations: ObservationsEvery observation of every program of every command and of the task program, combined.
connections: BTreeSet<Connection>Every connection of every program, combined.
totals: TotalsThe totals.
Implementations§
Source§impl Report
impl Report
Sourcepub fn new(
commands: Vec<CommandInput>,
task_program: Option<TaskProgramInput>,
) -> Self
pub fn new( commands: Vec<CommandInput>, task_program: Option<TaskProgramInput>, ) -> Self
The report of commands, in the order they ran, and of the task program’s
own accesses, if any.
Sourcepub fn complete(&self) -> bool
pub fn complete(&self) -> bool
Whether every command that ran was traced completely; cached commands do not count.
Sourcepub fn render(&self, format: ReportFormat, mode: ReportMode) -> String
pub fn render(&self, format: ReportFormat, mode: ReportMode) -> String
The report in format and mode.
Sourcepub fn text(&self, mode: ReportMode) -> String
pub fn text(&self, mode: ReportMode) -> String
The report as text, in mode: a header with the completeness and the
totals, each command with its processes in a hierarchical report, the task
program, and in a compact report every observation and connection once.
Sourcepub fn json(&self, mode: ReportMode) -> String
pub fn json(&self, mode: ReportMode) -> String
The report as JSON, in mode, indented by two spaces and ending with a
newline.
Trait Implementations§
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
Blanket Implementations§
impl<T> AsTypeStaticRegistered for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
impl<T> HasTyVTable for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more