pub enum Recovery {
Restored(Vec<String>),
Failed(RestoreFailure),
Unfinished(FinishFailure),
Finished,
}Expand description
What a recovery attempt found.
Variants§
Restored(Vec<String>)
Both files are back and the marker is cleared; the names restored.
Failed(RestoreFailure)
A file could not be put back; the marker and backups stay.
Unfinished(FinishFailure)
Both files are back, and the marker could not be finished: it is still active, and the next recovery would overwrite later edits.
Finished
A finished transaction’s marker was still there; nothing was restored, and the marker is gone or stays as residue that never reads as pending.
Trait Implementations§
impl Eq for Recovery
impl StructuralPartialEq for Recovery
Auto Trait Implementations§
impl Freeze for Recovery
impl RefUnwindSafe for Recovery
impl Send for Recovery
impl Sync for Recovery
impl Unpin for Recovery
impl UnsafeUnpin for Recovery
impl UnwindSafe for Recovery
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