pub struct Command {
pub program: String,
pub args: Vec<String>,
pub workspace: PathBuf,
pub timeout: Duration,
}Expand description
What to run, and under what limits.
Fields§
§program: StringThe program, as the sandbox will resolve it.
args: Vec<String>Its arguments, in order.
workspace: PathBufThe directory to run it in, which is also the only directory a checker has any business reading.
timeout: DurationHow long it may run before it is killed.
Implementations§
Source§impl Command
impl Command
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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