pub enum EffectClaim {
Fresh,
InProgress {
attempts: u64,
},
AlreadyCommitted {
result_json: String,
},
}Expand description
Outcome of AedbInstance::begin_effect — claiming a dedupe key before
performing a side effect (e.g. an external submission or a credit).
Variants§
Fresh
No prior attempt existed; the caller now owns this key and should
perform the effect, then call AedbInstance::complete_effect.
InProgress
A prior attempt claimed this key but never completed. attempts is the
total number of claims so far (including this one). The caller must
decide whether the external effect is safe to repeat — for a
non-idempotent external API this signals “reconcile before resubmitting”.
AlreadyCommitted
The effect already completed exactly once. The caller must NOT repeat it.
result_json is whatever was recorded at completion (e.g. a tx hash).
Trait Implementations§
Source§impl Clone for EffectClaim
impl Clone for EffectClaim
Source§fn clone(&self) -> EffectClaim
fn clone(&self) -> EffectClaim
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 EffectClaim
impl Debug for EffectClaim
impl Eq for EffectClaim
Source§impl PartialEq for EffectClaim
impl PartialEq for EffectClaim
Source§fn eq(&self, other: &EffectClaim) -> bool
fn eq(&self, other: &EffectClaim) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EffectClaim
Auto Trait Implementations§
impl Freeze for EffectClaim
impl RefUnwindSafe for EffectClaim
impl Send for EffectClaim
impl Sync for EffectClaim
impl Unpin for EffectClaim
impl UnsafeUnpin for EffectClaim
impl UnwindSafe for EffectClaim
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