pub struct ScriptRun {
pub program: Vec<OsString>,
pub script: PathBuf,
pub args: Vec<OsString>,
pub cwd: PathBuf,
pub stdin: Vec<u8>,
pub env: BTreeMap<String, String>,
pub timeout: Duration,
pub max_output: usize,
}Expand description
One script run.
Fields§
§program: Vec<OsString>Interpreter and its leading arguments, e.g. ["python3"]; the script path follows.
script: PathBuf§args: Vec<OsString>Extra arguments after the script.
cwd: PathBuf§stdin: Vec<u8>§env: BTreeMap<String, String>Added to the inherited environment.
timeout: Duration§max_output: usizePer stream; the rest is read and dropped.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ScriptRun
impl Freeze for ScriptRun
impl RefUnwindSafe for ScriptRun
impl Send for ScriptRun
impl Sync for ScriptRun
impl Unpin for ScriptRun
impl UnsafeUnpin for ScriptRun
impl UnwindSafe for ScriptRun
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