pub struct RealProcessExecutor;Expand description
Real process executor that uses std::process::Command.
This is the production implementation that spawns actual processes.
Implementations§
Trait Implementations§
Source§impl Clone for RealProcessExecutor
impl Clone for RealProcessExecutor
Source§fn clone(&self) -> RealProcessExecutor
fn clone(&self) -> RealProcessExecutor
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 RealProcessExecutor
impl Debug for RealProcessExecutor
Source§impl Default for RealProcessExecutor
impl Default for RealProcessExecutor
Source§fn default() -> RealProcessExecutor
fn default() -> RealProcessExecutor
Returns the “default value” for a type. Read more
Source§impl ProcessExecutor for RealProcessExecutor
impl ProcessExecutor for RealProcessExecutor
Source§fn execute(
&self,
command: &str,
args: &[&str],
env: &[(String, String)],
workdir: Option<&Path>,
) -> Result<ProcessOutput>
fn execute( &self, command: &str, args: &[&str], env: &[(String, String)], workdir: Option<&Path>, ) -> Result<ProcessOutput>
Execute a command with given arguments and return its output. Read more
Source§fn spawn(
&self,
command: &str,
args: &[&str],
env: &[(String, String)],
workdir: Option<&Path>,
) -> Result<Child>
fn spawn( &self, command: &str, args: &[&str], env: &[(String, String)], workdir: Option<&Path>, ) -> Result<Child>
Spawn a process with stdin input and return the child handle. Read more
Source§fn spawn_agent(&self, config: &AgentSpawnConfig) -> Result<AgentChildHandle>
fn spawn_agent(&self, config: &AgentSpawnConfig) -> Result<AgentChildHandle>
Spawn an agent process with streaming output support. Read more
Auto Trait Implementations§
impl Freeze for RealProcessExecutor
impl RefUnwindSafe for RealProcessExecutor
impl Send for RealProcessExecutor
impl Sync for RealProcessExecutor
impl Unpin for RealProcessExecutor
impl UnwindSafe for RealProcessExecutor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more