pub struct ExecutionResult {
pub exit_code: u8,
pub exit_shell: bool,
pub return_from_function_or_script: bool,
pub break_loop: Option<u8>,
pub continue_loop: Option<u8>,
}
Expand description
Encapsulates the result of executing a command.
Fields§
§exit_code: u8
The numerical exit code of the command.
exit_shell: bool
Whether the shell should exit after this command.
return_from_function_or_script: bool
Whether the shell should return from the current function or script.
break_loop: Option<u8>
If the command was executed in a loop, this is the number of levels to break out of.
continue_loop: Option<u8>
If the command was executed in a loop, this is the number of levels to continue.
Implementations§
Source§impl ExecutionResult
impl ExecutionResult
Trait Implementations§
Source§impl Debug for ExecutionResult
impl Debug for ExecutionResult
Source§impl Default for ExecutionResult
impl Default for ExecutionResult
Source§fn default() -> ExecutionResult
fn default() -> ExecutionResult
Returns the “default value” for a type. Read more
Source§impl From<ExecutionResult> for ExitCode
impl From<ExecutionResult> for ExitCode
Source§fn from(result: ExecutionResult) -> Self
fn from(result: ExecutionResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExecutionResult
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnwindSafe for ExecutionResult
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> 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