pub struct BatchReport {
pub phase: JournalPhase,
pub stale: bool,
pub moved: Vec<usize>,
pub deleted: Vec<usize>,
pub removed_dirs: Vec<String>,
pub failure: Option<String>,
pub deadline: bool,
}Expand description
What commit or restore did. Indices point into the spec’s writes
and deletes for commit, and into the record’s touched for restore.
Fields§
§phase: JournalPhaseThe last journal phase the call installed.
stale: boolThe pre-image check found a live file that is not what the plan was
made against. Nothing was moved; failure says how many paths and
which (value-free).
moved: Vec<usize>Writes (commit) or pre-images put back (restore) that completed.
deleted: Vec<usize>Deletes (commit) or created files removed (restore) that
completed.
removed_dirs: Vec<String>Directories removed because a delete emptied them.
failure: Option<String>Why the call stopped early, naming the entry by index and never its
content; None when it ran to the end.
deadline: boolThe call stopped because the spec’s commit_budget_s ran out, not
because an entry failed. failure is set too. The engine ends such a
run as a restore with the cause lock_expired.
Trait Implementations§
Source§impl Clone for BatchReport
impl Clone for BatchReport
Source§impl Debug for BatchReport
impl Debug for BatchReport
impl Eq for BatchReport
Source§impl PartialEq for BatchReport
impl PartialEq for BatchReport
impl StructuralPartialEq for BatchReport
Auto Trait Implementations§
impl Forget for BatchReport
impl Freeze for BatchReport
impl Move for BatchReport
impl RefUnwindSafe for BatchReport
impl Send for BatchReport
impl Sync for BatchReport
impl Unpin for BatchReport
impl UnsafeUnpin for BatchReport
impl UnwindSafe for BatchReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.