pub struct ExecResult {
pub exit_code: i32,
pub stdout: String,
pub stderr: String,
pub duration: Duration,
}Expand description
Result of executing a command in a sandbox.
Contains the exit code, captured output, and execution duration.
Fields§
§exit_code: i32Exit code of the command.
By convention, 0 indicates success and non-zero indicates failure. The specific meaning of non-zero codes depends on the program.
stdout: StringCaptured standard output.
stderr: StringCaptured standard error.
duration: DurationWall-clock time the command took to execute.
Trait Implementations§
Source§impl Clone for ExecResult
impl Clone for ExecResult
Source§fn clone(&self) -> ExecResult
fn clone(&self) -> ExecResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExecResult
impl RefUnwindSafe for ExecResult
impl Send for ExecResult
impl Sync for ExecResult
impl Unpin for ExecResult
impl UnsafeUnpin for ExecResult
impl UnwindSafe for ExecResult
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