pub enum AuditTerminalReason {
PreflightRejected,
AdmissionClosed,
QueueAdmissionExhausted,
AdmissionDeadlineExpired,
IdentityConflict,
StoreFailure,
IdempotencyUnsupported,
DriverPanicked,
DriverCancelled,
DriverJoinLost,
DriverExitedInconsistent,
}Expand description
Exhaustive terminal reasons an AuditBatchControl::submit,
AuditBatchControl::quiesce, or AuditBatchControl::close_and_drain
call can resolve to. Never mapped through a wildcard arm anywhere in this
module (R4).
Variants§
PreflightRejected
EventStore::preflight_event rejected the row before it was ever
enqueued. The row was never counted as submitted.
AdmissionClosed
The batch is Closing or Closed; new admission is refused.
QueueAdmissionExhausted
AuditBatchConfig::max_pending_rows was reached before this row was
enqueued. The row was never counted as submitted and never shared a
generation with anyone — safe to retry, and doing so applies the
obligation at most once.
AdmissionDeadlineExpired
The row was already enqueued (counted in submitted_rows) when this
caller’s AuditBatchConfig::admission_deadline elapsed waiting for
its generation’s outcome. Unlike Self::QueueAdmissionExhausted,
the row was not refused: by the moment the deadline fires it may
still be sitting in state.pending, or the driver may have already
drained it into an in-flight generation — either way it remains
enqueued and unresolved, and is committed (or terminally failed) by
the generation driver independently of this caller’s timeout, so the
caller cannot tell from this reason alone whether the row eventually
committed, or even which of those two states it was in when the
deadline elapsed. Retrying is only safe for an idempotent caller —
the prior submission may still land. When this reason degrades an
admission-degrade-safe read’s own audit obligation, it is counted
separately from Self::QueueAdmissionExhausted — see
pack::audit_admission_unresolved_obligation_count — precisely
because a row counted here may still commit, unlike one refused
before enqueue.
IdentityConflict
A row shared this generation’s id with a previously stored row whose columns or observation projection did not match exactly.
StoreFailure
The store returned a terminal (non-retryable, or retries exhausted) error for this generation.
IdempotencyUnsupported
The configured EventStore backend does not implement
append_events_idempotent.
DriverPanicked
The generation driver task panicked, or the supervisor awaiting it unwound while armed.
DriverCancelled
The generation driver task was cancelled/aborted, or the supervisor awaiting it was dropped mid-await (shutdown abort) while armed.
DriverJoinLost
The child driver’s JoinHandle was lost — dropped without ever being
inspected — so its outcome could not be classified.
DriverExitedInconsistent
The driver returned Ok but locked batch state was not proved
terminally consistent afterward (in_flight still set, or the
generation’s rows were never resolved).
Trait Implementations§
Source§impl Clone for AuditTerminalReason
impl Clone for AuditTerminalReason
Source§fn clone(&self) -> AuditTerminalReason
fn clone(&self) -> AuditTerminalReason
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 AuditTerminalReason
Source§impl Debug for AuditTerminalReason
impl Debug for AuditTerminalReason
impl Eq for AuditTerminalReason
Source§impl PartialEq for AuditTerminalReason
impl PartialEq for AuditTerminalReason
impl StructuralPartialEq for AuditTerminalReason
Auto Trait Implementations§
impl Freeze for AuditTerminalReason
impl RefUnwindSafe for AuditTerminalReason
impl Send for AuditTerminalReason
impl Sync for AuditTerminalReason
impl Unpin for AuditTerminalReason
impl UnsafeUnpin for AuditTerminalReason
impl UnwindSafe for AuditTerminalReason
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<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