pub fn end_session(
files: &SessionFiles,
read: &[&dyn Zone],
zone: &dyn Zone,
before_remove: &mut dyn FnMut() -> Result<Box<dyn Hold>, String>,
erase: &mut dyn FnMut(&Path, u64),
) -> Result<Outcome, String>Expand description
Prove, import, verify and remove one session’s files. before_remove runs after the verify and before any file is
touched: an Err stops with nothing removed, and what it returns is kept until the removal is done and asked before
each file whether it is still held. erase is called for each file after it is overwritten and
before it is unlinked (a test’s hook; pass a no-op otherwise). Nothing is removed unless every record and file is
matched or read back equal; an Err has removed nothing.