pub struct SystemCommandRunner;Trait Implementations§
Source§impl CommandRunner for SystemCommandRunner
impl CommandRunner for SystemCommandRunner
fn run(&self, command: &str, args: &[String]) -> CommandRunOutput
Source§fn run_with_timeout(
&self,
command: &str,
args: &[String],
timeout: Duration,
) -> CommandRunOutput
fn run_with_timeout( &self, command: &str, args: &[String], timeout: Duration, ) -> CommandRunOutput
Run with an upper bound; the process is killed once
timeout passes.
Runners that cannot time out simply run the command.Source§impl Debug for SystemCommandRunner
impl Debug for SystemCommandRunner
Auto Trait Implementations§
impl Freeze for SystemCommandRunner
impl RefUnwindSafe for SystemCommandRunner
impl Send for SystemCommandRunner
impl Sync for SystemCommandRunner
impl Unpin for SystemCommandRunner
impl UnsafeUnpin for SystemCommandRunner
impl UnwindSafe for SystemCommandRunner
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