pub struct RunOptions {
pub mirror: bool,
pub capture: bool,
pub stdin: StdinOption,
pub cwd: Option<PathBuf>,
pub env: Option<HashMap<String, String>>,
pub prefer_local: PreferLocal,
pub interactive: bool,
pub shell_operators: bool,
pub trace: bool,
pub kill_signal: String,
pub kill_grace_ms: u64,
}Expand description
Options for command execution
Fields§
§mirror: boolMirror output to parent stdout/stderr
capture: boolCapture output in result
stdin: StdinOptionStandard input handling
cwd: Option<PathBuf>Working directory
env: Option<HashMap<String, String>>Environment variables
prefer_local: PreferLocalPrefer executables from the working directory or explicit local directories.
interactive: boolInteractive mode (TTY forwarding)
shell_operators: boolEnable shell operator parsing
trace: boolEnable tracing for this command
kill_signal: StringSignal used to stop the process when it is killed without an explicit
signal, i.e. ProcessRunner::kill (default SIGTERM).
Mirrors the JavaScript killSignal option. An explicit
ProcessRunner::kill_with argument always overrides it.
kill_grace_ms: u64Milliseconds the child is given to handle the kill signal before
SIGKILL is sent (default 100).
Mirrors the JavaScript killGrace option. This is the window in which a
child running its own signal handler can shut down on its own terms.
Trait Implementations§
Source§impl Clone for RunOptions
impl Clone for RunOptions
Source§impl Debug for RunOptions
impl Debug for RunOptions
Auto Trait Implementations§
impl Freeze for RunOptions
impl RefUnwindSafe for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin for RunOptions
impl UnwindSafe for RunOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> ⓘ
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> ⓘ
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