pub enum AdmissionResult {
Admitted,
AlreadyPresent,
CapacityRejected,
}Expand description
Outcome of ReplicationQueues::add_pending_verify.
Distinguishes “the key is already being handled” from “the key was
silently dropped due to a queue capacity bound”. Bootstrap drain
accounting and source-side retry logic MUST treat CapacityRejected as
outstanding work; treating it like a dedup hit was the silent-drop
regression introduced when the queues first became bounded.
Variants§
Admitted
New entry inserted into pending_verify.
AlreadyPresent
Key was already in some pipeline stage; the existing entry is left in place. No retry required.
CapacityRejected
Global or per-source capacity bound rejected the entry. The caller MUST treat this as work still to do (not as silently completed).
Implementations§
Source§impl AdmissionResult
impl AdmissionResult
Sourcepub fn admitted(self) -> bool
pub fn admitted(self) -> bool
true only for AdmissionResult::Admitted. Preserves call sites
that only want to know “did the insert happen”.
Trait Implementations§
Source§impl Clone for AdmissionResult
impl Clone for AdmissionResult
Source§fn clone(&self) -> AdmissionResult
fn clone(&self) -> AdmissionResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AdmissionResult
Source§impl Debug for AdmissionResult
impl Debug for AdmissionResult
impl Eq for AdmissionResult
Source§impl PartialEq for AdmissionResult
impl PartialEq for AdmissionResult
Source§fn eq(&self, other: &AdmissionResult) -> bool
fn eq(&self, other: &AdmissionResult) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AdmissionResult
Auto Trait Implementations§
impl Freeze for AdmissionResult
impl RefUnwindSafe for AdmissionResult
impl Send for AdmissionResult
impl Sync for AdmissionResult
impl Unpin for AdmissionResult
impl UnsafeUnpin for AdmissionResult
impl UnwindSafe for AdmissionResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more