pub struct ExecutionOutput {
pub stdout: String,
pub stderr: String,
pub exit_code: i32,
}Expand description
Output of a single executed action.
exit_code is the discriminant between success and failure. Prefer
is_success / is_nonzero at
call sites — if output.exit_code == 0 is harder to read and easier to
invert by accident than if output.is_success(). The raw exit_code
stays public because the dispatcher echoes it back to callers and the
rollback path includes the precise code in diagnostic messages.
Fields§
§stdout: String§stderr: String§exit_code: i32Implementations§
Source§impl ExecutionOutput
impl ExecutionOutput
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
true when the action exited cleanly (exit_code == 0).
Sourcepub fn is_nonzero(&self) -> bool
pub fn is_nonzero(&self) -> bool
true when the action failed (exit_code != 0).
Trait Implementations§
Source§impl Clone for ExecutionOutput
impl Clone for ExecutionOutput
Source§fn clone(&self) -> ExecutionOutput
fn clone(&self) -> ExecutionOutput
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 ExecutionOutput
impl Debug for ExecutionOutput
impl Eq for ExecutionOutput
Source§impl PartialEq for ExecutionOutput
impl PartialEq for ExecutionOutput
impl StructuralPartialEq for ExecutionOutput
Auto Trait Implementations§
impl Freeze for ExecutionOutput
impl RefUnwindSafe for ExecutionOutput
impl Send for ExecutionOutput
impl Sync for ExecutionOutput
impl Unpin for ExecutionOutput
impl UnsafeUnpin for ExecutionOutput
impl UnwindSafe for ExecutionOutput
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more