#[non_exhaustive]pub struct ProcessSpec {
pub program: String,
pub args: Vec<String>,
pub cwd: Option<PathBuf>,
pub env: Vec<(String, String)>,
pub stdin: Option<PathBuf>,
}Expand description
One process to start.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.program: StringThe program: a bare tool name, found on PATH.
args: Vec<String>Its arguments, passed as they are (no shell ever reads them).
cwd: Option<PathBuf>Its working folder (default: the runner’s).
env: Vec<(String, String)>Variables added to the runner’s environment.
stdin: Option<PathBuf>A file piped into its standard input (default: none).
Implementations§
Source§impl ProcessSpec
impl ProcessSpec
Sourcepub fn new(
program: &str,
args: impl IntoIterator<Item = impl Into<String>>,
) -> ProcessSpec
pub fn new( program: &str, args: impl IntoIterator<Item = impl Into<String>>, ) -> ProcessSpec
program with args, everything else at its default.
Trait Implementations§
Source§impl Clone for ProcessSpec
impl Clone for ProcessSpec
Source§impl Debug for ProcessSpec
impl Debug for ProcessSpec
Source§impl Default for ProcessSpec
impl Default for ProcessSpec
impl Eq for ProcessSpec
Source§impl PartialEq for ProcessSpec
impl PartialEq for ProcessSpec
impl StructuralPartialEq for ProcessSpec
Auto Trait Implementations§
impl Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.