pub enum VerificationState {
Show 13 variants
OfferReceived,
PendingVerify,
QuorumVerified,
PaidListVerified,
QueuedForFetch,
Fetching,
Stored,
FetchRetryable,
FetchAbandoned,
QuorumFailed,
QuorumInconclusive,
QuorumAbandoned,
Idle,
}Expand description
Verification state machine.
Each unknown key transitions through these states exactly once per offer
lifecycle. See Section 8 of REPLICATION_DESIGN.md for the full
state-transition diagram.
Variants§
OfferReceived
Offer received, not yet processed.
PendingVerify
Passed admission filter, awaiting quorum / paid-list verification.
QuorumVerified
Presence quorum passed (>= QuorumNeeded positives from
QuorumTargets).
PaidListVerified
Paid-list authorisation succeeded (>= ConfirmNeeded confirmations or
derived from replica majority).
QueuedForFetch
Queued for record fetch.
Fetching
Actively fetching from a verified source.
Stored
Successfully stored locally.
FetchRetryable
Fetch failed but retryable (alternate sources remain).
FetchAbandoned
Fetch permanently abandoned (terminal failure or no alternate sources).
QuorumFailed
Quorum failed definitively (both paid-list and presence impossible this round).
QuorumInconclusive
Quorum inconclusive (timeout with neither success nor fail-fast).
QuorumAbandoned
Terminal: quorum abandoned, key forgotten.
Idle
Terminal: key returned to idle (forgotten, requires new offer to re-enter).
Trait Implementations§
Source§impl Clone for VerificationState
impl Clone for VerificationState
Source§fn clone(&self) -> VerificationState
fn clone(&self) -> VerificationState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerificationState
impl Debug for VerificationState
Source§impl PartialEq for VerificationState
impl PartialEq for VerificationState
impl Eq for VerificationState
impl StructuralPartialEq for VerificationState
Auto Trait Implementations§
impl Freeze for VerificationState
impl RefUnwindSafe for VerificationState
impl Send for VerificationState
impl Sync for VerificationState
impl Unpin for VerificationState
impl UnsafeUnpin for VerificationState
impl UnwindSafe for VerificationState
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.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