pub struct MemoryInboxStore { /* private fields */ }Expand description
In-memory idempotency records scoped by consumer name.
Implementations§
Trait Implementations§
Source§impl Debug for MemoryInboxStore
impl Debug for MemoryInboxStore
Source§impl Default for MemoryInboxStore
impl Default for MemoryInboxStore
Source§fn default() -> MemoryInboxStore
fn default() -> MemoryInboxStore
Returns the “default value” for a type. Read more
Source§impl InboxStore for MemoryInboxStore
impl InboxStore for MemoryInboxStore
Source§fn claim<'a>(
&'a self,
consumer: &'a str,
id: &'a MessageId,
claim_id: DeliveryClaimId,
received_at: SystemTime,
lease_until: SystemTime,
) -> BoxFuture<'a, SoapResult<InboxClaim>>
fn claim<'a>( &'a self, consumer: &'a str, id: &'a MessageId, claim_id: DeliveryClaimId, received_at: SystemTime, lease_until: SystemTime, ) -> BoxFuture<'a, SoapResult<InboxClaim>>
Atomically claims a message for a named consumer using an exclusive lease.
Source§fn complete<'a>(
&'a self,
consumer: &'a str,
id: &'a MessageId,
claim_id: &'a DeliveryClaimId,
completed_at: SystemTime,
) -> BoxFuture<'a, SoapResult<()>>
fn complete<'a>( &'a self, consumer: &'a str, id: &'a MessageId, claim_id: &'a DeliveryClaimId, completed_at: SystemTime, ) -> BoxFuture<'a, SoapResult<()>>
Marks a claimed message as processed if the lease identity still owns it.
Source§fn release<'a>(
&'a self,
consumer: &'a str,
id: &'a MessageId,
claim_id: &'a DeliveryClaimId,
released_at: SystemTime,
) -> BoxFuture<'a, SoapResult<()>>
fn release<'a>( &'a self, consumer: &'a str, id: &'a MessageId, claim_id: &'a DeliveryClaimId, released_at: SystemTime, ) -> BoxFuture<'a, SoapResult<()>>
Releases a failed claim so adapter policy may permit another attempt.
Auto Trait Implementations§
impl !Freeze for MemoryInboxStore
impl RefUnwindSafe for MemoryInboxStore
impl Send for MemoryInboxStore
impl Sync for MemoryInboxStore
impl Unpin for MemoryInboxStore
impl UnsafeUnpin for MemoryInboxStore
impl UnwindSafe for MemoryInboxStore
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