pub struct SubprocessSpec {
pub mode: SubprocessMode,
pub env: TaskEnv,
pub cwd: Option<PathBuf>,
pub fail_on_non_zero: Flag,
}Expand description
Specification for subprocess execution on the host.
Supports two execution strategies via SubprocessMode:
- Command — direct binary execution (
execve(command, args)) - Script — script interpreted by a
Runtime(execve(runtime, [flag, body, ...args]))
Common fields (env, cwd, fail_on_non_zero) apply to both modes.
Fields§
§mode: SubprocessModeExecution strategy (command or script).
env: TaskEnvEnvironment variables for the process.
cwd: Option<PathBuf>Working directory.
fail_on_non_zero: FlagWhether to treat non-zero exit codes as task failure.
When enabled (default), any non-zero exit code will be reported as a failure.
Trait Implementations§
Source§impl Clone for SubprocessSpec
impl Clone for SubprocessSpec
Source§fn clone(&self) -> SubprocessSpec
fn clone(&self) -> SubprocessSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubprocessSpec
impl Debug for SubprocessSpec
Source§impl<'de> Deserialize<'de> for SubprocessSpec
impl<'de> Deserialize<'de> for SubprocessSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SubprocessSpec
impl PartialEq for SubprocessSpec
Source§impl Serialize for SubprocessSpec
impl Serialize for SubprocessSpec
impl Eq for SubprocessSpec
impl StructuralPartialEq for SubprocessSpec
Auto Trait Implementations§
impl Freeze for SubprocessSpec
impl RefUnwindSafe for SubprocessSpec
impl Send for SubprocessSpec
impl Sync for SubprocessSpec
impl Unpin for SubprocessSpec
impl UnsafeUnpin for SubprocessSpec
impl UnwindSafe for SubprocessSpec
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