Skip to main content

run_box

Function run_box 

Source
pub fn run_box(
    release_document_path: &Path,
    options: &RunBoxOptions<'_>,
) -> Result<BoxRunResult>
Expand description

Verifies, extracts, runs and removes a box in one call.

The extracted tree is deleted whatever happens — a normal exit, a signal, or a failure part way through — because a temporary box that outlives its run is a box nobody will remember to remove.

§Errors

When verification, preparation or execution fails.