Skip to main content

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;
11pub mod resolution;
12
13#[derive(Clone, Copy, Debug, PartialEq, Eq)]
14pub enum ExitClass {
15    /// Complete evaluation, no effective blocking finding.
16    Success,
17    /// Complete evaluation, at least one effective blocking finding.
18    BlockingFindings,
19    /// Anything that prevented a trustworthy complete result.
20    Failure,
21}
22
23impl ExitClass {
24    #[must_use]
25    pub const fn code(self) -> u8 {
26        match self {
27            Self::Success => 0,
28            Self::BlockingFindings => 1,
29            Self::Failure => 2,
30        }
31    }
32}