Skip to main content

AuditTerminalReason

Enum AuditTerminalReason 

Source
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

Source§

fn clone(&self) -> AuditTerminalReason

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for AuditTerminalReason

Source§

impl Debug for AuditTerminalReason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for AuditTerminalReason

Source§

impl PartialEq for AuditTerminalReason

Source§

fn eq(&self, other: &AuditTerminalReason) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for AuditTerminalReason

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more