pub enum Outcome {
Minted,
Matched,
Moved {
from: String,
},
Copied {
previous: String,
},
Adopted,
}Expand description
Result of a single reconciliation call, describing what was detected.
Variants§
Minted
.zen had no doc-id; a fresh id was minted. Caller must stamp it into the file.
Matched
Same doc at its known path; nothing changed but the updated_ms.
Moved
The doc-id’s previously-bound path no longer exists; rebound to the new path.
Copied
The doc-id is still bound to a DIFFERENT, still-existing file → this is a copy.
A new id was minted for this copy; caller must stamp doc_id into the file.
Adopted
The doc-id was present in the file but no local history existed (e.g. cloned from a remote, or first use on this machine); local history was created.
Trait Implementations§
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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