pub struct OutboxClaimRef {
pub message_id: String,
pub worker_id: String,
pub leased_until: SystemTime,
pub attempt: u32,
}Fields§
§message_id: String§worker_id: String§leased_until: SystemTime§attempt: u32Implementations§
Source§impl OutboxClaimRef
impl OutboxClaimRef
pub fn from_message(message: &OutboxMessage) -> Result<Self, RepositoryError>
Trait Implementations§
Source§impl Clone for OutboxClaimRef
impl Clone for OutboxClaimRef
Source§fn clone(&self) -> OutboxClaimRef
fn clone(&self) -> OutboxClaimRef
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 OutboxClaimRef
impl Debug for OutboxClaimRef
Source§impl PartialEq for OutboxClaimRef
impl PartialEq for OutboxClaimRef
Source§fn eq(&self, other: &OutboxClaimRef) -> bool
fn eq(&self, other: &OutboxClaimRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OutboxClaimRef
impl StructuralPartialEq for OutboxClaimRef
Auto Trait Implementations§
impl Freeze for OutboxClaimRef
impl RefUnwindSafe for OutboxClaimRef
impl Send for OutboxClaimRef
impl Sync for OutboxClaimRef
impl Unpin for OutboxClaimRef
impl UnsafeUnpin for OutboxClaimRef
impl UnwindSafe for OutboxClaimRef
Blanket Implementations§
Source§impl<T> AsyncAggregateBuilder for T
impl<T> AsyncAggregateBuilder for T
fn async_aggregate<A: Aggregate>(self) -> AsyncAggregateRepository<Self, A>
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<T> Queueable for T
impl<T> Queueable for T
Source§fn queued_async(self) -> QueuedRepository<Self, InMemoryAsyncLockManager>
fn queued_async(self) -> QueuedRepository<Self, InMemoryAsyncLockManager>
Wrap with the default async lock manager. Pair with
.async_aggregate::<T>() for per-aggregate serialization over the async
repository surface.Source§fn queued_async_with<L: AsyncLockManager>(
self,
lock_manager: L,
) -> QueuedRepository<Self, L>
fn queued_async_with<L: AsyncLockManager>( self, lock_manager: L, ) -> QueuedRepository<Self, L>
Wrap with a custom async lock manager.