pub enum ClaimOutcome {
Claimed,
AlreadyPending,
AlreadyDone,
}Expand description
Result of a try_claim call.
Variants§
Claimed
First time the key has been seen — caller now owns the pending claim.
AlreadyPending
Key already exists in pending state; another worker may be holding
the claim, or a previous attempt did not complete. Caller should
proceed only if it can guarantee no concurrent execution (e.g. a
JetStream redelivery to the same consumer).
AlreadyDone
Key exists in done state; the message was successfully processed
before. Caller MUST treat this as a duplicate and ack without running
the handler.
Trait Implementations§
Source§impl Clone for ClaimOutcome
impl Clone for ClaimOutcome
Source§fn clone(&self) -> ClaimOutcome
fn clone(&self) -> ClaimOutcome
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 ClaimOutcome
impl Debug for ClaimOutcome
Source§impl PartialEq for ClaimOutcome
impl PartialEq for ClaimOutcome
Source§fn eq(&self, other: &ClaimOutcome) -> bool
fn eq(&self, other: &ClaimOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ClaimOutcome
impl Eq for ClaimOutcome
impl StructuralPartialEq for ClaimOutcome
Auto Trait Implementations§
impl Freeze for ClaimOutcome
impl RefUnwindSafe for ClaimOutcome
impl Send for ClaimOutcome
impl Sync for ClaimOutcome
impl Unpin for ClaimOutcome
impl UnsafeUnpin for ClaimOutcome
impl UnwindSafe for ClaimOutcome
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