pub fn run(
src: &Path,
root: &Path,
daemon: &Path,
auth: &Path,
say: &mut dyn FnMut(&str),
) -> Result<Restored, Refusal>Expand description
The whole restore: read, refuse, place, rehearse, prove.
§Errors
Every refusal above, plus the rehearsal’s own: a node that serves no log head, a view that disagrees with the attestation, a canary the node refuses, a log that did not grow, an appended entry that does not chain onto what the node replayed to, or a restored log that is not a byte-exact continuation of the backup.