pub struct IdempotencyLease {
pub key: IdempotencyKey,
pub fingerprint: RequestFingerprint,
pub lease_id: Uuid,
pub started_at: DateTime<Utc>,
}Expand description
Exclusive claim returned before a caller performs the side effect.
Stores must compare the lease identifier during completion and abort so an expired worker cannot overwrite the result produced by a newer claim.
Fields§
§key: IdempotencyKey§fingerprint: RequestFingerprint§lease_id: Uuid§started_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for IdempotencyLease
impl Clone for IdempotencyLease
Source§fn clone(&self) -> IdempotencyLease
fn clone(&self) -> IdempotencyLease
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 IdempotencyLease
impl Debug for IdempotencyLease
impl Eq for IdempotencyLease
Source§impl PartialEq for IdempotencyLease
impl PartialEq for IdempotencyLease
impl StructuralPartialEq for IdempotencyLease
Auto Trait Implementations§
impl Freeze for IdempotencyLease
impl RefUnwindSafe for IdempotencyLease
impl Send for IdempotencyLease
impl Sync for IdempotencyLease
impl Unpin for IdempotencyLease
impl UnsafeUnpin for IdempotencyLease
impl UnwindSafe for IdempotencyLease
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