pub struct Run<'a> {
pub argv: &'a [String],
pub stdin: Option<&'a [u8]>,
pub working_dir: Option<&'a Path>,
pub timeout: Duration,
pub cancel: Option<&'a Arc<AtomicBool>>,
}Expand description
What to run and how long to wait for it.
Fields§
§argv: &'a [String]§stdin: Option<&'a [u8]>§working_dir: Option<&'a Path>None inherits this process’s directory.
timeout: Duration§cancel: Option<&'a Arc<AtomicBool>>Set from another thread to kill the child early.
Auto Trait Implementations§
impl<'a> Freeze for Run<'a>
impl<'a> RefUnwindSafe for Run<'a>
impl<'a> Send for Run<'a>
impl<'a> Sync for Run<'a>
impl<'a> Unpin for Run<'a>
impl<'a> UnsafeUnpin for Run<'a>
impl<'a> UnwindSafe for Run<'a>
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