pub enum TargetedDelivery {
Matched(Subscription),
Duplicate,
NotWaiting,
}Expand description
Result of delivering an event to one explicitly named waiting run.
A2A continuation carries a taskId, so ordinary correlation matching is
too weak: two tasks may legitimately wait on the same business key. The
store must insert and claim in one transaction, against that exact run.
Variants§
Matched(Subscription)
The event was durably claimed for this subscription.
Duplicate
The same (source, id) was already accepted.
NotWaiting
The named run has no matching live subscription.
Trait Implementations§
Source§impl Clone for TargetedDelivery
impl Clone for TargetedDelivery
Source§impl Debug for TargetedDelivery
impl Debug for TargetedDelivery
Source§impl PartialEq for TargetedDelivery
impl PartialEq for TargetedDelivery
impl StructuralPartialEq for TargetedDelivery
Auto Trait Implementations§
impl Freeze for TargetedDelivery
impl RefUnwindSafe for TargetedDelivery
impl Send for TargetedDelivery
impl Sync for TargetedDelivery
impl Unpin for TargetedDelivery
impl UnsafeUnpin for TargetedDelivery
impl UnwindSafe for TargetedDelivery
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.