pub struct ShellScript {
pub stdout: String,
pub stderr: String,
pub exit_code: i32,
pub delay_ms: Option<u64>,
}Expand description
A canned shell result for InMemoryExecutionEnv::exec.
Fields§
§stdout: String§stderr: String§exit_code: i32§delay_ms: Option<u64>Optional delay before the result resolves (simulates a slow command for timeout/abort tests).
Implementations§
Trait Implementations§
Source§impl Clone for ShellScript
impl Clone for ShellScript
Source§fn clone(&self) -> ShellScript
fn clone(&self) -> ShellScript
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 moreAuto Trait Implementations§
impl Freeze for ShellScript
impl RefUnwindSafe for ShellScript
impl Send for ShellScript
impl Sync for ShellScript
impl Unpin for ShellScript
impl UnsafeUnpin for ShellScript
impl UnwindSafe for ShellScript
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