pub enum StoreOutcome {
Inserted,
Replayed(LifecycleReceipt),
}Expand description
Outcome of a successful IdempotencyStore::put.
Replayed carries a full LifecycleReceipt. The size disparity
between Inserted (zero-sized) and Replayed triggers
clippy::large_enum_variant; we accept it rather than boxing
because every put() returns a stack-local StoreOutcome and
boxing would force every IdempotencyStore impl through an extra
indirection for no measurable benefit (mirrors the choice for
AdapterResolution::Found in validation.rs).
Variants§
Inserted
First write under this key. The supplied receipt is now the canonical value.
Replayed(LifecycleReceipt)
Replay of an existing receipt; the prior value is returned unchanged.
Trait Implementations§
Source§impl Clone for StoreOutcome
impl Clone for StoreOutcome
Source§fn clone(&self) -> StoreOutcome
fn clone(&self) -> StoreOutcome
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 StoreOutcome
impl Debug for StoreOutcome
Source§impl PartialEq for StoreOutcome
impl PartialEq for StoreOutcome
Source§fn eq(&self, other: &StoreOutcome) -> bool
fn eq(&self, other: &StoreOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StoreOutcome
impl StructuralPartialEq for StoreOutcome
Auto Trait Implementations§
impl Freeze for StoreOutcome
impl RefUnwindSafe for StoreOutcome
impl Send for StoreOutcome
impl Sync for StoreOutcome
impl Unpin for StoreOutcome
impl UnsafeUnpin for StoreOutcome
impl UnwindSafe for StoreOutcome
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
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
Compare self to
key and return true if they are equal.