pub enum DivergenceState {
Synced,
InputChanged,
OutputChanged,
BothChanged,
MissingSource,
MissingDeployed,
}Expand description
Where a single processed file sits in the 4-state matrix.
Variants§
Synced
Source unchanged, deployed file matches the cached render. Nothing to do.
InputChanged
Source has changed since the cached render, but the deployed
file is still the cached render. The next dodot up will
re-render — no action from transform check.
OutputChanged
Source unchanged, deployed file edited by the user. The reverse-merge engine should propagate the edit back to the source.
BothChanged
Both the source and the deployed file have changed since the
last dodot up. The reverse-merge engine still tries to
produce a diff, but the result is more likely to require a
conflict block.
MissingSource
The cached source path no longer exists on disk. The pack file
was renamed or removed; the baseline is stale and should be
dropped on the next up.
MissingDeployed
The cached deployed path is gone. The user (or some external tool) deleted the rendered file. Unusual but worth surfacing.
Trait Implementations§
Source§impl Clone for DivergenceState
impl Clone for DivergenceState
Source§fn clone(&self) -> DivergenceState
fn clone(&self) -> DivergenceState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DivergenceState
impl Debug for DivergenceState
Source§impl PartialEq for DivergenceState
impl PartialEq for DivergenceState
Source§impl Serialize for DivergenceState
impl Serialize for DivergenceState
impl Copy for DivergenceState
impl Eq for DivergenceState
impl StructuralPartialEq for DivergenceState
Auto Trait Implementations§
impl Freeze for DivergenceState
impl RefUnwindSafe for DivergenceState
impl Send for DivergenceState
impl Sync for DivergenceState
impl Unpin for DivergenceState
impl UnsafeUnpin for DivergenceState
impl UnwindSafe for DivergenceState
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.