pub enum CommandStatus {
Exited(i32),
Signalled(Option<i32>),
TimedOut,
Started,
Failed(&'static str),
}Expand description
How an observed command finished. Carries no captured stdout/stderr — only a coarse, allocation-free category — so an observer can never leak process output (which could echo user text) into a log.
Variants§
Exited(i32)
The process exited with this code (0 for success; any code, since a
non-zero exit is not an error at the runner seam).
Signalled(Option<i32>)
Terminated by a signal (Unix); the number when the kernel exposed one.
TimedOut
Killed for exceeding its timeout.
Started
A live streaming handle was returned (ProcessRunner::start); the
command’s completion, exit code, and duration are observed by whoever
drives the handle, not here.
Failed(&'static str)
The run failed before producing an exit code (spawn/launch/IO error). The
&'static str is a stable category — never the error’s captured output.
Trait Implementations§
Source§impl Clone for CommandStatus
impl Clone for CommandStatus
Source§fn clone(&self) -> CommandStatus
fn clone(&self) -> CommandStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandStatus
Source§impl Debug for CommandStatus
impl Debug for CommandStatus
impl Eq for CommandStatus
Source§impl PartialEq for CommandStatus
impl PartialEq for CommandStatus
impl StructuralPartialEq for CommandStatus
Auto Trait Implementations§
impl Freeze for CommandStatus
impl RefUnwindSafe for CommandStatus
impl Send for CommandStatus
impl Sync for CommandStatus
impl Unpin for CommandStatus
impl UnsafeUnpin for CommandStatus
impl UnwindSafe for CommandStatus
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