pub fn apply_plan(
patcher: &mut dyn BytePatcher,
plan: &PatchPlan,
config: &ApplyConfig,
) -> Result<PatchManifest>Expand description
Apply every operation in plan through patcher, returning the
durable manifest that records what changed.
On a partial failure (any read or write returning Err) the
function aborts immediately and propagates the error; the manifest
for the partial run is not returned, so the caller must use
the backup at config.backup_path to recover.
ยงErrors
Propagates I/O failures from hashing the binary, plus any error
produced by the underlying BytePatcher.