#[non_exhaustive]pub enum Outcome {
Completed,
Usage,
Rejected,
ThresholdExceeded,
}Expand description
What the tool did, and the exit code that says so.
The codes are a contract with CI scripts: a threshold that was exceeded has to be distinguishable from a tool that could not run, or the script has to parse prose.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Completed
The analysis ran and every threshold was met.
Usage
The arguments were wrong, or a path could not be read.
Rejected
The input was not something this tool can analyse.
ThresholdExceeded
The analysis ran and a --fail-if threshold was exceeded.
Implementations§
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
Blanket Implementations§
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
Mutably borrows from an owned value. Read more