pub async fn restore(args: &RestoreArgs) -> Result<RestoreReport, RestoreError>Expand description
Run a restore and return its report.
This is the entry point for a caller that wants the structured outcome and the structured error rather than an exit code.
ยงErrors
Returns RestoreError for a bad bound, a bound that names a topic
partition the archive does not hold, a target that is not empty, an
archive that cannot be read, a segment that fails verification, or a target
that rejects a write. --continue-on-corrupt turns a verification failure
into a skipped segment in the report instead of an error.