pub enum AtomicOpFailure {
GuardFailed {
statement_label: Option<String>,
expected: AffectedRowGuard,
observed: u64,
},
SqlError {
statement_label: Option<String>,
message: String,
},
}Expand description
Why a single op’s plan failed inside the commit pass (ADR-099 acceptance criteria: “the failing op index is recorded”).
Variants§
GuardFailed
The statement executed without a SQL error, but its affected-row count did not satisfy the guard prepare attached to it (ADR-099 D1 rule 2 — “a prepare-time validation is a plan hypothesis, re-verified under the transaction, never a commitment”). This is the shape both the dangling-edge and zero-row acceptance criteria trip.
SqlError
The statement itself returned a storage error (a genuine SQL failure — malformed SQL, a constraint violation not modeled as a guard, etc.), not a guard mismatch.
Trait Implementations§
Source§impl Clone for AtomicOpFailure
impl Clone for AtomicOpFailure
Source§fn clone(&self) -> AtomicOpFailure
fn clone(&self) -> AtomicOpFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AtomicOpFailure
impl Debug for AtomicOpFailure
impl Eq for AtomicOpFailure
Source§impl PartialEq for AtomicOpFailure
impl PartialEq for AtomicOpFailure
impl StructuralPartialEq for AtomicOpFailure
Auto Trait Implementations§
impl Freeze for AtomicOpFailure
impl RefUnwindSafe for AtomicOpFailure
impl Send for AtomicOpFailure
impl Sync for AtomicOpFailure
impl Unpin for AtomicOpFailure
impl UnsafeUnpin for AtomicOpFailure
impl UnwindSafe for AtomicOpFailure
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.