pub struct TokioProcessRunner { /* private fields */ }Expand description
Host-process runner backed by tokio::process::Command.
The runner executes the exact validated argv supplied by
ProcessActionIntent, inherits the current process environment, closes
stdin, captures bounded stdout/stderr through the shared process IO path,
and cooperatively cancels by killing the child process. Permission profiles
and sandbox constraints are selected by the owning backend, not by this
executor.
Implementations§
Source§impl TokioProcessRunner
impl TokioProcessRunner
Sourcepub fn new_at_workspace_root(root: impl Into<PathBuf>) -> Self
pub fn new_at_workspace_root(root: impl Into<PathBuf>) -> Self
Creates a Tokio-backed process runner whose process cwd values are resolved under a stable workspace root.
Sourcepub fn with_environment_overrides(
self,
overrides: impl IntoIterator<Item = (OsString, OsString)>,
) -> Result<Self, ProcessRunnerError>
pub fn with_environment_overrides( self, overrides: impl IntoIterator<Item = (OsString, OsString)>, ) -> Result<Self, ProcessRunnerError>
Validates and applies environment assignments while preserving all other variables inherited from the Merry process.
Trait Implementations§
Source§impl Clone for TokioProcessRunner
impl Clone for TokioProcessRunner
Source§impl Debug for TokioProcessRunner
impl Debug for TokioProcessRunner
Source§impl Default for TokioProcessRunner
impl Default for TokioProcessRunner
Source§impl ProcessRunner for TokioProcessRunner
impl ProcessRunner for TokioProcessRunner
Source§fn run<'a>(
&'a self,
intent: ProcessActionIntent,
context: ProcessRunnerContext,
) -> ProcessRunnerFuture<'a>
fn run<'a>( &'a self, intent: ProcessActionIntent, context: ProcessRunnerContext, ) -> ProcessRunnerFuture<'a>
Runs a validated process intent and returns provider-neutral output.
Source§fn background_control(&self) -> Option<Arc<dyn BackgroundProcessControl>>
fn background_control(&self) -> Option<Arc<dyn BackgroundProcessControl>>
Returns the session board that retains this runner’s background processes. Read more
Auto Trait Implementations§
impl Forget for TokioProcessRunner
impl Freeze for TokioProcessRunner
impl Move for TokioProcessRunner
impl RefUnwindSafe for TokioProcessRunner
impl Send for TokioProcessRunner
impl Sync for TokioProcessRunner
impl Unpin for TokioProcessRunner
impl UnsafeUnpin for TokioProcessRunner
impl UnwindSafe for TokioProcessRunner
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