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>>,
pub tag: Option<String>,
}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>>§tag: Option<String>The tag the sandbox gave the process, by which what it starts is found wherever it goes; set by a sandbox, not by whoever asks.
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 ProcessSpecwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, String)>: Freeze,
impl Move for ProcessSpec
impl RefUnwindSafe for ProcessSpec
impl Send for ProcessSpecwhere
RawVecInner: Send,
impl Sync for ProcessSpecwhere
RawVecInner: Sync,
impl Unpin for ProcessSpec
impl UnsafeUnpin for ProcessSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for ProcessSpecwhere
RawVecInner: UnwindSafe,
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