pub struct RunOptions {
pub timeout: Duration,
pub stdout_cap: usize,
pub stderr_cap: usize,
pub no_window: bool,
}Expand description
Limits for run.
Fields§
§timeout: DurationHow long the program may run before its tree is terminated.
stdout_cap: usizeMost bytes kept from stdout (the rest is drained and discarded).
stderr_cap: usizeMost bytes kept from stderr.
no_window: boolHide the console window on Windows. The default. false leaves it visible.
Implementations§
Source§impl RunOptions
impl RunOptions
Trait Implementations§
Source§impl Clone for RunOptions
impl Clone for RunOptions
impl Copy for RunOptions
Source§impl Debug for RunOptions
impl Debug for RunOptions
impl Eq for RunOptions
Source§impl PartialEq for RunOptions
impl PartialEq for RunOptions
impl StructuralPartialEq 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
Mutably borrows from an owned value. Read more