pub fn land(
target: &Held,
recorded: Option<&Manifest>,
prepared: &Prepared,
origin: Origin,
_lock: &TargetLock,
) -> Result<Landed, RkError>Expand description
Land prepared into target.
Refuse every collision first, open the target once under the lock the caller holds, write the configuration where its bytes changed, then each candidate by its decision, then the receipt.
The caller gathers under the same lock where it wants the evidence
and the writes to agree; prepare itself takes none, so a preview
holds nothing.
§Errors
The collision refusal at exit 73 with nothing written; the lock’s
refusals; and RkError::Io for a write that fails, naming every
path completed before it, with the previous receipt left in place.