pub struct ExecutionRequest { /* private fields */ }Expand description
Platform-neutral, validated request passed to a private execution backend.
Search paths remain private adapter input: external callers can add them only through the checked builder and cannot replace validated paths after construction.
ⓘ
use tapid_runner::ExecutionRequest;
let request = ExecutionRequest::builder("node")
.executable_search_path("/runtime/bin")
.build()
.unwrap();
let _ = request.executable_search_paths();Implementations§
Source§impl ExecutionRequest
impl ExecutionRequest
pub fn builder(program: impl Into<OsString>) -> ExecutionRequestBuilder
pub fn program(&self) -> &OsStr
pub fn arguments(&self) -> &[OsString]
Sourcepub fn uses_windows_verbatim_arguments(&self) -> bool
pub fn uses_windows_verbatim_arguments(&self) -> bool
Whether a Windows adapter must pass arguments without MSVCRT re-quoting.
pub fn project_root(&self) -> &Path
pub fn policy(&self) -> &SandboxPolicy
Sourcepub fn allow_process_memory_stats(&self) -> bool
pub fn allow_process_memory_stats(&self) -> bool
Whether the caller explicitly requested process-memory statistics through isolated procfs.
Sourcepub fn environment(&self) -> &BTreeMap<OsString, OsString>
pub fn environment(&self) -> &BTreeMap<OsString, OsString>
Explicit caller-provided environment.
This does not expose the mandatory adapter-owned PATH. Private adapters receive the
explicit entries plus PATH serialized from the ordered executable-search directories;
an empty directory list produces an explicitly empty PATH.
Trait Implementations§
Source§impl Clone for ExecutionRequest
impl Clone for ExecutionRequest
Source§impl Debug for ExecutionRequest
impl Debug for ExecutionRequest
impl Eq for ExecutionRequest
Source§impl PartialEq for ExecutionRequest
impl PartialEq for ExecutionRequest
impl StructuralPartialEq for ExecutionRequest
Auto Trait Implementations§
impl Freeze for ExecutionRequest
impl RefUnwindSafe for ExecutionRequest
impl Send for ExecutionRequest
impl Sync for ExecutionRequest
impl Unpin for ExecutionRequest
impl UnsafeUnpin for ExecutionRequest
impl UnwindSafe for ExecutionRequest
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