amiss_wire/lib.rs
1pub mod action;
2pub mod controls;
3pub mod de;
4pub mod digest;
5pub mod human;
6pub mod json;
7pub mod manifest;
8pub mod model;
9pub mod report;
10pub mod requests;
11
12#[derive(Clone, Copy, Debug, PartialEq, Eq)]
13pub enum ExitClass {
14 /// Complete evaluation, no effective blocking finding.
15 Success,
16 /// Complete evaluation, at least one effective blocking finding.
17 BlockingFindings,
18 /// Anything that prevented a trustworthy complete result.
19 Failure,
20}
21
22impl ExitClass {
23 #[must_use]
24 pub const fn code(self) -> u8 {
25 match self {
26 Self::Success => 0,
27 Self::BlockingFindings => 1,
28 Self::Failure => 2,
29 }
30 }
31}