pub struct ExecRequest {
pub argv: Vec<String>,
pub cwd: Option<EnvironmentPath>,
pub env: BTreeMap<String, String>,
pub stdin: Option<Vec<u8>>,
}Expand description
Request to run a foreground/background command inside an environment.
Fields§
§argv: Vec<String>Executable and arguments. argv[0] is the executable.
cwd: Option<EnvironmentPath>Optional environment-local working directory override.
env: BTreeMap<String, String>Per-call process environment overrides.
stdin: Option<Vec<u8>>Optional stdin bytes.
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 moreSource§impl Debug for ExecRequest
impl Debug for ExecRequest
Source§impl Default for ExecRequest
impl Default for ExecRequest
Source§fn default() -> ExecRequest
fn default() -> ExecRequest
Returns the “default value” for a type. Read more
Auto 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