pub struct RealCommandExecutor;Expand description
Real command executor that runs actual shell commands
Trait Implementations§
Source§impl CommandExecutor for RealCommandExecutor
impl CommandExecutor for RealCommandExecutor
Source§fn execute(&self, program: &str, args: &[&str]) -> Result<CommandOutput>
fn execute(&self, program: &str, args: &[&str]) -> Result<CommandOutput>
Execute a command and return its output
Source§fn execute_in_dir(
&self,
program: &str,
args: &[&str],
dir: &str,
) -> Result<CommandOutput>
fn execute_in_dir( &self, program: &str, args: &[&str], dir: &str, ) -> Result<CommandOutput>
Execute a command in a specific directory
Source§impl Debug for RealCommandExecutor
impl Debug for RealCommandExecutor
Source§impl Default for RealCommandExecutor
impl Default for RealCommandExecutor
Source§fn default() -> RealCommandExecutor
fn default() -> RealCommandExecutor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RealCommandExecutor
impl RefUnwindSafe for RealCommandExecutor
impl Send for RealCommandExecutor
impl Sync for RealCommandExecutor
impl Unpin for RealCommandExecutor
impl UnwindSafe for RealCommandExecutor
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