pub struct RunnerCommand {
pub binary: String,
pub prefix_args: Vec<String>,
pub command: String,
pub collect: bool,
pub cwd: Option<PathBuf>,
pub shell: bool,
pub env: Vec<(String, String)>,
}Fields§
§binary: String§prefix_args: Vec<String>§command: String§collect: bool§cwd: Option<PathBuf>§shell: bool§env: Vec<(String, String)>Implementations§
Source§impl RunnerCommand
impl RunnerCommand
pub fn raw_full_command(&self) -> String
Sourcepub fn execute(&self) -> Result<RunnerExecution>
pub fn execute(&self) -> Result<RunnerExecution>
Execute the described command and return process details.
This mirrors upstream AbstractRunner.run, including shell execution,
inherited stdio by default, and piped stdout when collect is true.
Trait Implementations§
Source§impl Clone for RunnerCommand
impl Clone for RunnerCommand
Source§fn clone(&self) -> RunnerCommand
fn clone(&self) -> RunnerCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RunnerCommand
impl Debug for RunnerCommand
Source§impl PartialEq for RunnerCommand
impl PartialEq for RunnerCommand
Source§fn eq(&self, other: &RunnerCommand) -> bool
fn eq(&self, other: &RunnerCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RunnerCommand
impl StructuralPartialEq for RunnerCommand
Auto Trait Implementations§
impl Freeze for RunnerCommand
impl RefUnwindSafe for RunnerCommand
impl Send for RunnerCommand
impl Sync for RunnerCommand
impl Unpin for RunnerCommand
impl UnsafeUnpin for RunnerCommand
impl UnwindSafe for RunnerCommand
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.