#[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>,
pub ledger_dir: Option<PathBuf>,
pub container: Option<String>,
}Expand description
One process to start.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
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).
ledger_dir: Option<PathBuf>The folder the tool is recorded in while it runs (its process group; its process tree on Windows), so the next operation can end it if the process that started it is killed first (default: not recorded). An operation’s tools are recorded in the run’s state folder.
A tool that isn’t part of a run (one an embedder starts itself) is recorded in a folder of
the embedder’s, one it keeps for its own tools: the embedder passes that folder to
ledger::end_orphans when it starts, which ends what a crashed or killed process of
its left running there.
container: Option<String>The container the tool runs in, by name, when program is the Docker CLI running it
(docker run --name): removed (docker rm -f) wherever the tool is ended before its end,
since ending the docker client leaves its container running (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 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
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
key and return true if they are equal.