pub enum Adoption {
Matches,
Tuned,
State,
Differs,
Missing {
exists: bool,
},
Irregular,
}Expand description
What an adoption finds at one candidate’s destination.
It is judged on the bytes alone. rk adopt decides from it, and
rk stage compare takes the word of a target the adoption lands from
it, so the comparison is the adoption’s own decision.
Variants§
Matches
The destination holds the candidate’s bytes.
Tuned
A seeded file the target tuned: it stays, target-owned.
State
A state file: it stays as the target left it.
Differs
A rendered destination whose bytes differ from the candidate.
Missing
The destination is absent, or carries no release-kit block where
exists.
Irregular
Something other than a regular file stands at the destination.
Implementations§
Source§impl Adoption
impl Adoption
Sourcepub const fn word(self) -> &'static str
pub const fn word(self) -> &'static str
The comparison word, in the landing’s vocabulary and with the
meaning the method gives it: a kept seeded or state file is
preserved, and whatever the adoption refuses is a collision.
Sourcepub fn replaceable(self, kind: Kind) -> bool
pub fn replaceable(self, kind: Kind) -> bool
Whether the adoption accepts --replace for a destination of
kind judged so: a rendered destination that differs or is
missing. Every other collision refuses whatever is named.
Trait Implementations§
impl Copy for Adoption
impl Eq for Adoption
impl StructuralPartialEq for Adoption
Auto Trait Implementations§
impl Forget for Adoption
impl Freeze for Adoption
impl Move for Adoption
impl RefUnwindSafe for Adoption
impl Send for Adoption
impl Sync for Adoption
impl Unpin for Adoption
impl UnsafeUnpin for Adoption
impl UnwindSafe for Adoption
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.