pub struct RunOptions {
pub args: Option<Vec<String>>,
pub cwd: Option<String>,
pub env: Option<HashMap<String, String>>,
pub user: Option<String>,
pub timeout_ms: Option<u64>,
pub background: bool,
pub on_stdout: Option<OutputCallback>,
pub on_stderr: Option<OutputCallback>,
}Expand description
Options for commands.run / commands.start.
Fields§
§args: Option<Vec<String>>argv tail (the guest runs cmd with these, NOT via a shell).
cwd: Option<String>§env: Option<HashMap<String, String>>§user: Option<String>§timeout_ms: Option<u64>§background: boolRun detached: returns immediately, output still streams via callbacks.
on_stdout: Option<OutputCallback>§on_stderr: Option<OutputCallback>Implementations§
Trait Implementations§
Source§impl Clone for RunOptions
impl Clone for RunOptions
Auto Trait Implementations§
impl !RefUnwindSafe for RunOptions
impl !UnwindSafe for RunOptions
impl Freeze for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more