pub struct ApplyStats {
pub written: usize,
pub deleted: usize,
pub failed: Vec<(PathBuf, SnapshotError)>,
}Expand description
What an apply managed, and what it could not.
Not Clone/PartialEq: SnapshotError carries a std::io::Error, which
is neither. Compare the counts and failed.is_empty() instead.
Fields§
§written: usize§deleted: usize§failed: Vec<(PathBuf, SnapshotError)>Each file fails on its own without stopping the rest. Empty on a clean apply.
Collected is not shrugged off. A restore with a non-empty failed
must not read as success anywhere — not in an exit code, not in
output. The peer review of competing implementations flags exactly
this failure: per-file errors gathered into a struct nobody prints.
Trait Implementations§
Source§impl Debug for ApplyStats
impl Debug for ApplyStats
Source§impl Default for ApplyStats
impl Default for ApplyStats
Source§fn default() -> ApplyStats
fn default() -> ApplyStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ApplyStats
impl !UnwindSafe for ApplyStats
impl Freeze for ApplyStats
impl Send for ApplyStats
impl Sync for ApplyStats
impl Unpin for ApplyStats
impl UnsafeUnpin for ApplyStats
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
Mutably borrows from an owned value. Read more