pub enum DivergenceLink {
Noted {
seq: u64,
unit: String,
candidates: Vec<DivergenceCandidate>,
diverged: bool,
},
Resolved {
seq: u64,
unit: String,
selected: Option<u32>,
reason: String,
decided_by: String,
},
}Expand description
One divergence-ledger entry, replayed (ticket
divergence-first-class-event, KRZ-304): the comparison the pool
parked on, or the resolution that later landed — pinned to its seq
so the record and its resolution interleave with the rest of the chain
in log order. The candidate refs (run id, branch, backend, tree hash)
ride verbatim, so the resolution’s selected index resolves against
the SAME replayed record without git.
Variants§
Noted
A divergence.noted — the comparison record. diverged: false is
the agreement record: logged, never trusted.
Resolved
A divergence.resolved — which candidate (or none), why, decided
by whom.
Trait Implementations§
Source§impl Clone for DivergenceLink
impl Clone for DivergenceLink
Source§fn clone(&self) -> DivergenceLink
fn clone(&self) -> DivergenceLink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DivergenceLink
impl Debug for DivergenceLink
Source§impl<'de> Deserialize<'de> for DivergenceLink
impl<'de> Deserialize<'de> for DivergenceLink
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DivergenceLink
impl PartialEq for DivergenceLink
Source§impl Serialize for DivergenceLink
impl Serialize for DivergenceLink
impl StructuralPartialEq for DivergenceLink
Auto Trait Implementations§
impl Freeze for DivergenceLink
impl RefUnwindSafe for DivergenceLink
impl Send for DivergenceLink
impl Sync for DivergenceLink
impl Unpin for DivergenceLink
impl UnsafeUnpin for DivergenceLink
impl UnwindSafe for DivergenceLink
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