Skip to main content

run

Function run 

Source
pub fn run(
    target: &Utf8Path,
    stored: &Plan,
    blobs: &BTreeMap<Digest, Vec<u8>>,
    fresh: &Plan,
    journal: Option<Journal>,
) -> Result<Applied, RkError>
Expand description

Execute one gated, revalidated plan: stage every operation, commit the renames in order, run the postconditions, and journal the run.

§Errors

The gate’s and the revalidation’s refusals, a refusal for a destination that moved, and RkError::Io for a staged write or a rename that fails, whose message names every destination that landed before it. A failed postcondition is not an error here: the report carries it, and Applied::failure is the error the caller returns after rendering.