pub enum SpawnOutcome {
RanClean(String),
RanNonZero,
TimedOut,
NotFound,
SpawnFailed(String),
}Expand description
Outcome of a guarded spawn — mirrors the old SpawnOutcome in
introspect.rs, shared so both call sites agree on semantics.
Variants§
RanClean(String)
Exited 0; stdout+stderr captured (concatenated).
RanNonZero
Exited non-zero; output not consumed (callers only act on RanClean).
TimedOut
Did not finish within the timeout (killed).
NotFound
Binary not found on PATH.
SpawnFailed(String)
Other spawn error (permission denied, etc.). Carries the io::Error display so the caller can surface it (verify wants this for an actionable “could not spawn” message, distinct from “not found”).
Trait Implementations§
Source§impl Clone for SpawnOutcome
impl Clone for SpawnOutcome
Source§fn clone(&self) -> SpawnOutcome
fn clone(&self) -> SpawnOutcome
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 moreSource§impl Debug for SpawnOutcome
impl Debug for SpawnOutcome
impl Eq for SpawnOutcome
Source§impl PartialEq for SpawnOutcome
impl PartialEq for SpawnOutcome
impl StructuralPartialEq for SpawnOutcome
Auto Trait Implementations§
impl Freeze for SpawnOutcome
impl RefUnwindSafe for SpawnOutcome
impl Send for SpawnOutcome
impl Sync for SpawnOutcome
impl Unpin for SpawnOutcome
impl UnsafeUnpin for SpawnOutcome
impl UnwindSafe for SpawnOutcome
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.