pub struct Options<'a> {
pub job_id: Option<&'a str>,
pub cwd: Option<PathBuf>,
pub harvest_back: bool,
pub remove_on_success: bool,
pub reuse: bool,
pub target_dir: Option<&'a str>,
pub command: &'a [String],
}Expand description
What the caller wants.
Fields§
§job_id: Option<&'a str>Job id / work-dir name; None mints one.
cwd: Option<PathBuf>Directory the command runs in (default: the current directory).
harvest_back: boolStore the units the job produced back into the vault.
remove_on_success: boolRemove the work dir after the run — success or failure. Without it the dir is kept for inspection.
reuse: boolContinue in an existing job dir instead of refusing (restore is idempotent; a dir a live build holds is still refused).
target_dir: Option<&'a str>The child’s CARGO_TARGET_DIR: Some("job") means <work dir>/target
(per-job finals — the fully parallel case); any other value is a path.
command: &'a [String]The command, argv-style.
Auto Trait Implementations§
impl<'a> Freeze for Options<'a>
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnsafeUnpin for Options<'a>
impl<'a> UnwindSafe for Options<'a>
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