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 ScriptRunwhere
*const u8 is !null: Freeze,
PhantomData<OsString>: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for ScriptRun
impl RefUnwindSafe for ScriptRun
impl Send for ScriptRun
impl Sync for ScriptRun
impl Unpin for ScriptRun
impl UnsafeUnpin for ScriptRunwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<OsString>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
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