pub struct Spawn {
pub program: PathBuf,
pub args: Vec<String>,
pub env_set: Vec<(String, String)>,
pub env_remove: Vec<String>,
pub stdin: Option<String>,
pub files: Vec<(PathBuf, String)>,
}Expand description
A subprocess call, described but not started.
Fields§
§program: PathBuf§args: Vec<String>§env_set: Vec<(String, String)>§env_remove: Vec<String>Variable names to remove; a trailing * removes every variable with that prefix.
stdin: Option<String>§files: Vec<(PathBuf, String)>Files the driver writes before it starts the process.
Trait Implementations§
impl Eq for Spawn
impl StructuralPartialEq for Spawn
Auto Trait Implementations§
impl Forget for Spawn
impl Freeze for Spawnwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, String)>: Freeze,
PhantomData<(PathBuf, String)>: Freeze,
impl Move for Spawn
impl RefUnwindSafe for Spawn
impl Send for Spawnwhere
RawVecInner: Send,
impl Sync for Spawnwhere
RawVecInner: Sync,
impl Unpin for Spawn
impl UnsafeUnpin for Spawnwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<(PathBuf, String)>: UnsafeUnpin,
impl UnwindSafe for Spawnwhere
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