pub enum InboxOutcome {
Processed,
Duplicate,
}Expand description
Outcome of committing an InboxReceipt.
A Duplicate is not an error: the message was already processed, so the
consumer treats it as success (acks) without re-running effects.
Variants§
Processed
The receipt was newly recorded (first time this message was processed).
Duplicate
A receipt for (consumer, message_id) already existed; effects were skipped.
Implementations§
Source§impl InboxOutcome
impl InboxOutcome
Sourcepub fn is_processed(self) -> bool
pub fn is_processed(self) -> bool
Whether this is the first processing (vs a deduplicated replay).
Sourcepub fn is_duplicate(self) -> bool
pub fn is_duplicate(self) -> bool
Whether the message was already processed (a deduplicated replay).
Trait Implementations§
Source§impl Clone for InboxOutcome
impl Clone for InboxOutcome
Source§fn clone(&self) -> InboxOutcome
fn clone(&self) -> InboxOutcome
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 moreimpl Copy for InboxOutcome
Source§impl Debug for InboxOutcome
impl Debug for InboxOutcome
impl Eq for InboxOutcome
Source§impl PartialEq for InboxOutcome
impl PartialEq for InboxOutcome
impl StructuralPartialEq for InboxOutcome
Auto Trait Implementations§
impl Freeze for InboxOutcome
impl RefUnwindSafe for InboxOutcome
impl Send for InboxOutcome
impl Sync for InboxOutcome
impl Unpin for InboxOutcome
impl UnsafeUnpin for InboxOutcome
impl UnwindSafe for InboxOutcome
Blanket Implementations§
Source§impl<T> AggregateBuilder for T
impl<T> AggregateBuilder for T
fn aggregate<A: Aggregate>(self) -> AggregateRepository<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(self) -> QueuedRepository<Self, InMemoryLockManager>
fn queued(self) -> QueuedRepository<Self, InMemoryLockManager>
Wrap with the default async lock manager. Pair with
.aggregate::<T>() for per-aggregate serialization over the async
repository surface.Source§fn queued_with<L: LockManager>(
self,
lock_manager: L,
) -> QueuedRepository<Self, L>
fn queued_with<L: LockManager>( self, lock_manager: L, ) -> QueuedRepository<Self, L>
Wrap with a custom async lock manager.