pub struct ExecutionRequestBuilder { /* private fields */ }Expand description
Builder for an ExecutionRequest.
Implementations§
Source§impl ExecutionRequestBuilder
impl ExecutionRequestBuilder
pub fn arg(self, argument: impl Into<OsString>) -> Self
pub fn args<I, S>(self, arguments: I) -> Self
Sourcepub fn executable_search_path(self, path: impl Into<PathBuf>) -> Self
pub fn executable_search_path(self, path: impl Into<PathBuf>) -> Self
Adds one executable search directory after existing entries.
Self::build rejects entries that the target platform’s std::env::join_paths cannot
serialize, exact duplicates, and requests whose complete child environment (including the
resulting mandatory PATH) exceeds MAX_ENVIRONMENT_BLOCK_UNITS.
Sourcepub fn trusted_node_runtime(self, path: impl Into<PathBuf>) -> Self
pub fn trusted_node_runtime(self, path: impl Into<PathBuf>) -> Self
Binds the exact canonical Node executable to the first child PATH directory.
Sourcepub fn windows_verbatim_arguments(self, enabled: bool) -> Self
pub fn windows_verbatim_arguments(self, enabled: bool) -> Self
Requires the Windows adapter to use CommandExt::raw_arg or an equivalent verbatim seam.
Sourcepub fn allow_process_memory_stats(self, enabled: bool) -> Self
pub fn allow_process_memory_stats(self, enabled: bool) -> Self
Enables read-only procfs access inside a private PID/mount namespace for this process and its descendants.
Sourcepub fn executable_search_paths<I, P>(self, paths: I) -> Self
pub fn executable_search_paths<I, P>(self, paths: I) -> Self
Adds ordered executable search directories without consulting ambient PATH.
Self::build validates every entry’s representation and size before duplicate checks,
then applies the target platform’s exact std::env::join_paths serialization rules.
pub fn project_root(self, project_root: impl Into<PathBuf>) -> Self
Sourcepub fn working_directory(self, working_directory: impl Into<PathBuf>) -> Self
pub fn working_directory(self, working_directory: impl Into<PathBuf>) -> Self
Sets the child process working directory, which must resolve inside project_root.
pub fn policy(self, policy: SandboxPolicy) -> Self
Sourcepub fn env(self, name: impl Into<OsString>, value: impl Into<OsString>) -> Self
pub fn env(self, name: impl Into<OsString>, value: impl Into<OsString>) -> Self
Adds one explicit child environment value.
Sourcepub fn envs<I, K, V>(self, environment: I) -> Self
pub fn envs<I, K, V>(self, environment: I) -> Self
Adds explicit child environment values without reading the ambient environment.