pub struct ExecOptions {
pub cwd: Option<String>,
pub env: HashMap<String, String>,
pub timeout: Option<Duration>,
pub capture_stdout: bool,
pub capture_stderr: bool,
}Expand description
Options for process execution.
Fields§
§cwd: Option<String>Working directory.
env: HashMap<String, String>Environment variables.
timeout: Option<Duration>Timeout.
capture_stdout: boolCapture stdout.
capture_stderr: boolCapture stderr.
Trait Implementations§
Source§impl Clone for ExecOptions
impl Clone for ExecOptions
Source§fn clone(&self) -> ExecOptions
fn clone(&self) -> ExecOptions
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 ExecOptions
impl Debug for ExecOptions
Auto Trait Implementations§
impl Freeze for ExecOptions
impl RefUnwindSafe for ExecOptions
impl Send for ExecOptions
impl Sync for ExecOptions
impl Unpin for ExecOptions
impl UnwindSafe for ExecOptions
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