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