runcc/run/report.rs
1#[derive(Debug, Clone, Copy)]
2#[non_exhaustive]
3pub struct CommandSystemSimpleReport {
4 pub command_count_total: usize,
5 pub command_count_success: usize,
6}
7
8impl CommandSystemSimpleReport {
9 pub fn command_count_failed(&self) -> usize {
10 self.command_count_total - self.command_count_success
11 }
12}