pub struct Claim<V> {
pub id: MessageId,
pub value: V,
pub lease_token: LeaseToken,
pub attempt: u32,
pub lease_expires_at_millis: u64,
}Expand description
A message claimed for processing until its lease deadline.
Fields§
§id: MessageIdStable identifier of the published message.
value: VApplication payload.
lease_token: LeaseTokenToken required to acknowledge this particular delivery attempt.
attempt: u32One-based number of times this message has been claimed.
lease_expires_at_millis: u64Exclusive Unix-millisecond lease deadline.
Trait Implementations§
impl<V: Eq> Eq for Claim<V>
impl<V: PartialEq> StructuralPartialEq for Claim<V>
Auto Trait Implementations§
impl<V> Freeze for Claim<V>where
V: Freeze,
impl<V> RefUnwindSafe for Claim<V>where
V: RefUnwindSafe,
impl<V> Send for Claim<V>where
V: Send,
impl<V> Sync for Claim<V>where
V: Sync,
impl<V> Unpin for Claim<V>where
V: Unpin,
impl<V> UnsafeUnpin for Claim<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Claim<V>where
V: UnwindSafe,
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