pub enum DiffKind {
Unchanged,
Modified,
Drift,
Added,
Removed,
}Expand description
Per-file diff classification.
Variants§
Unchanged
On-disk content matches the planned render. Nothing to do.
Modified
Registry now renders different content. On-disk hash still matches the manifest, so the file is ryra-owned and safe to overwrite.
Drift
On-disk hash differs from both the manifest and the planned render —
the user hand-edited this file. Upgrade refuses without --force.
Includes the case where there is no manifest entry to compare against
(service installed before the manifest feature; treated conservatively
as drift until the user confirms with --force).
Added
File is in the planned render but absent from the manifest — registry added it.
Removed
File is in the manifest but no longer rendered by the registry — registry stopped shipping it. Upgrade deletes it.
Trait Implementations§
impl Eq for DiffKind
impl StructuralPartialEq for DiffKind
Auto Trait Implementations§
impl Freeze for DiffKind
impl RefUnwindSafe for DiffKind
impl Send for DiffKind
impl Sync for DiffKind
impl Unpin for DiffKind
impl UnsafeUnpin for DiffKind
impl UnwindSafe for DiffKind
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
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
Compare self to
key and return true if they are equal.