pub enum RecoveryFailure {
NoSnapshot,
ExternalModification {
snapshot: Box<Snapshot>,
},
ChainMismatch,
}Expand description
Why recovery could not proceed.
Variants§
NoSnapshot
No snapshot was ever recorded for path + file_hash.
ExternalModification
The tag names the latest (head) snapshot, but the live file differs — an external modification. M1 rejects; Phase 2 (3-way merge) would handle this.
ChainMismatch
The session-chain guards failed (line count or anchor content changed between the tagged snapshot and live).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecoveryFailure
impl RefUnwindSafe for RecoveryFailure
impl Send for RecoveryFailure
impl Sync for RecoveryFailure
impl Unpin for RecoveryFailure
impl UnsafeUnpin for RecoveryFailure
impl UnwindSafe for RecoveryFailure
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