pub struct ProcessSpec {
pub program: String,
pub args: Vec<String>,
pub cwd: PathBuf,
pub env: Vec<(String, String)>,
pub env_scope: EnvScope,
pub stdin: Option<Vec<u8>>,
}Expand description
What to run. A shell command is one of these by the time it gets here:
bash -c <command>. There is deliberately no separate shell contract —
two execution contracts would mean two places a sandbox has to be attached,
and therefore two places it can be missed.
Fields§
§program: String§args: Vec<String>§cwd: PathBuf§env: Vec<(String, String)>Added to whatever the provider’s own environment is. Not a replacement: a remote provider’s environment is not this machine’s to dictate.
env_scope: EnvScopeHow much of the provider’s own environment the process starts from.
stdin: Option<Vec<u8>>Implementations§
Trait Implementations§
Source§impl Clone for ProcessSpec
impl Clone for ProcessSpec
Source§impl Debug for ProcessSpec
impl Debug for ProcessSpec
impl Eq for ProcessSpec
Source§impl PartialEq for ProcessSpec
impl PartialEq for ProcessSpec
impl StructuralPartialEq for ProcessSpec
Auto Trait Implementations§
impl Forget for ProcessSpec
impl Freeze for ProcessSpec
impl Move for ProcessSpec
impl RefUnwindSafe for ProcessSpec
impl Send for ProcessSpec
impl Sync for ProcessSpec
impl Unpin for ProcessSpec
impl UnsafeUnpin for ProcessSpec
impl UnwindSafe for ProcessSpec
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