#[non_exhaustive]#[repr(i32)]pub enum ExitCode {
Success = 0,
DecodedWithEvidenceWarnings = 1,
InvalidInputShape = 2,
UnsupportedCobolSurface = 3,
InternalInvariantFailure = 4,
IoOrConfigError = 5,
}Expand description
Stable process exit codes (KOBOLD.FILE.1). Documented and frozen — operators script against these.
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.
Success = 0
Clean ingest/decode.
DecodedWithEvidenceWarnings = 1
Decoded, but evidence warnings exist (a preserved partial record, or dirty fields).
InvalidInputShape = 2
The input shape is invalid (record_len 0, partial record under strict, unexpected trailing LF).
UnsupportedCobolSurface = 3
An unsupported COBOL surface was required.
InternalInvariantFailure = 4
An internal invariant failed (a bug — should never happen).
IoOrConfigError = 5
An I/O or configuration error (missing file, missing required flag, bad encoding).
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