pub struct CommitDeduplicator { /* private fields */ }Expand description
Tracks replicated commits and suppresses duplicates by idempotency key.
Implementations§
Source§impl CommitDeduplicator
impl CommitDeduplicator
Sourcepub fn should_accept(&mut self, marker: &CommitMarker) -> bool
pub fn should_accept(&mut self, marker: &CommitMarker) -> bool
Returns true if the marker is new and should be replicated/applied.
Sourcepub fn seen_count(&self) -> usize
pub fn seen_count(&self) -> usize
Number of unique commits seen.
Trait Implementations§
Source§impl Debug for CommitDeduplicator
impl Debug for CommitDeduplicator
Source§impl Default for CommitDeduplicator
impl Default for CommitDeduplicator
Source§fn default() -> CommitDeduplicator
fn default() -> CommitDeduplicator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommitDeduplicator
impl RefUnwindSafe for CommitDeduplicator
impl Send for CommitDeduplicator
impl Sync for CommitDeduplicator
impl Unpin for CommitDeduplicator
impl UnsafeUnpin for CommitDeduplicator
impl UnwindSafe for CommitDeduplicator
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).