pub struct Command {
pub cwd: PathBuf,
/* private fields */
}Expand description
A single runtime invocation with private output and temporary directories, in the author’s own environment. The caller owns the run directory and retains its contents for receipts/pruning.
Fields§
§cwd: PathBufResolved artifact cwd; defaults to the canonical workspace.
Implementations§
Source§impl Command
impl Command
Sourcepub fn prepare(
program: OsString,
args: Vec<OsString>,
workspace: &Path,
run_dir: &Path,
timeout: Option<Duration>,
) -> Result<Self, Error>
pub fn prepare( program: OsString, args: Vec<OsString>, workspace: &Path, run_dir: &Path, timeout: Option<Duration>, ) -> Result<Self, Error>
Prepare literal argv. The command inherits the caller’s environment except artifactize’s
own ARTIFACTIZE_* variables. Each invocation gets independent 0700 output and
temporary directories below external run_dir.
pub fn directory(&self) -> &Path
pub fn timeout(&self) -> Duration
Trait Implementations§
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