pub enum ProcessExit {
Success,
RuntimeFailure,
CliParseError,
ConfigValidation,
BindFailure,
UnsupportedFeature,
PlatformMissing,
ExternalDependency,
Sigint,
Sigterm,
}Expand description
Typed process outcome. Prefer returning this from command handlers and
converting to a numeric code once at the process boundary over threading
raw i32 constants through business logic.
Variants§
Success
Clean run / check passed.
RuntimeFailure
Runtime failure (supervisor, connection drain, unexpected I/O).
CliParseError
CLI/flag parse error (including strict-gate rejection of unknown flags and invalid values for closed option domains).
ConfigValidation
Configuration validation failure (file, TOML, or translated config).
BindFailure
Listener bind failure (address in use, permission denied).
UnsupportedFeature
Unsupported feature / composition refused fail-closed.
PlatformMissing
Required platform facility unavailable (e.g. Linux-only --daemon
requested on another OS, prebuilt updater on an unsupported target).
ExternalDependency
External dependency unavailable (e.g. curl missing for download,
release metadata unreachable, checksum tool absent).
Sigint
Terminated by SIGINT (Ctrl-C).
Sigterm
Terminated by SIGTERM.
Implementations§
Trait Implementations§
Source§impl Clone for ProcessExit
impl Clone for ProcessExit
Source§fn clone(&self) -> ProcessExit
fn clone(&self) -> ProcessExit
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ProcessExit
Source§impl Debug for ProcessExit
impl Debug for ProcessExit
impl Eq for ProcessExit
Source§impl PartialEq for ProcessExit
impl PartialEq for ProcessExit
impl StructuralPartialEq for ProcessExit
Auto Trait Implementations§
impl Freeze for ProcessExit
impl RefUnwindSafe for ProcessExit
impl Send for ProcessExit
impl Sync for ProcessExit
impl Unpin for ProcessExit
impl UnsafeUnpin for ProcessExit
impl UnwindSafe for ProcessExit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
key and return true if they are equal.