pub enum IdempotencyLookup {
Acquired,
InFlight,
FingerprintMismatch,
Replayed(Arc<StoredIdempotentResponse>),
}Expand description
Result of attempting to acquire or replay an Idempotency-Key in an IdempotencyStore.
Variants§
Acquired
No prior entry existed; this caller acquired the exclusive InFlight slot.
InFlight
Another request with the same key and fingerprint is currently executing (409 Conflict).
FingerprintMismatch
A prior or in-flight entry exists under the same key with a different request fingerprint (422).
Replayed(Arc<StoredIdempotentResponse>)
A completed cached response matched both key and fingerprint and is ready for zero-copy replay.
Trait Implementations§
Source§impl Clone for IdempotencyLookup
impl Clone for IdempotencyLookup
Auto Trait Implementations§
impl Forget for IdempotencyLookup
impl Freeze for IdempotencyLookupwhere
*const ArcInner<StoredIdempotentResponse> is !null: Freeze,
PhantomData<ArcInner<StoredIdempotentResponse>>: Freeze,
impl Move for IdempotencyLookup
impl RefUnwindSafe for IdempotencyLookup
impl Send for IdempotencyLookup
impl Sync for IdempotencyLookup
impl Unpin for IdempotencyLookup
impl UnsafeUnpin for IdempotencyLookupwhere
*const ArcInner<StoredIdempotentResponse> is !null: UnsafeUnpin,
PhantomData<ArcInner<StoredIdempotentResponse>>: UnsafeUnpin,
impl UnwindSafe for IdempotencyLookup
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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