#[repr(i32)]pub enum ExitCode {
Success = 0,
RuntimeError = 1,
ConfigError = 2,
AnalysisError = 3,
ThresholdExceeded = 10,
}Expand description
Exit codes for the sdivi binary.
These are public API — adding a variant or reusing an existing code is a breaking change requiring a major version bump.
§Examples
use sdivi_core::ExitCode;
assert_eq!(ExitCode::Success as i32, 0);
assert_eq!(ExitCode::ThresholdExceeded as i32, 10);Variants§
Success = 0
Successful run; no threshold breaches.
RuntimeError = 1
Runtime error (unexpected I/O failure, internal invariant violated).
ConfigError = 2
Configuration error (malformed TOML, invalid value, missing expires).
AnalysisError = 3
Analysis error (e.g. no grammar available for any detected language).
ThresholdExceeded = 10
At least one threshold was exceeded. Emitted only by sdivi check.
Implementations§
Trait Implementations§
impl Copy for ExitCode
impl Eq for ExitCode
impl StructuralPartialEq for ExitCode
Auto Trait Implementations§
impl Freeze for ExitCode
impl RefUnwindSafe for ExitCode
impl Send for ExitCode
impl Sync for ExitCode
impl Unpin for ExitCode
impl UnsafeUnpin for ExitCode
impl UnwindSafe for ExitCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.