pub struct ExecRequest {
pub command: String,
pub cwd: PathBuf,
pub timeout: Option<Duration>,
pub env: Vec<(String, String)>,
pub shell: Option<ShellSpec>,
pub front_back: Option<FrontBackSpec>,
}Expand description
A command to run through the host’s shell.
Fields§
§command: StringThe command line, run as <shell> -lc <command> (or -c when not a login shell).
cwd: PathBufWorking directory (the caller jail-resolves this).
timeout: Option<Duration>Per-call timeout; None uses the host default, then clamped to the host max.
env: Vec<(String, String)>Extra environment variables, layered on top of the inherited environment.
shell: Option<ShellSpec>Harness-specific shell shape (Task 26 Slice 0b); None = host default.
front_back: Option<FrontBackSpec>Opt-in combined front/back capture + spill; None = per-stream tails.
Trait Implementations§
Source§impl Clone for ExecRequest
impl Clone for ExecRequest
Source§fn clone(&self) -> ExecRequest
fn clone(&self) -> ExecRequest
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 ExecRequest
impl RefUnwindSafe for ExecRequest
impl Send for ExecRequest
impl Sync for ExecRequest
impl Unpin for ExecRequest
impl UnsafeUnpin for ExecRequest
impl UnwindSafe for ExecRequest
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