pub struct Pulled<H> {
pub outcome: ClaimOutcome,
pub ack: H,
}Expand description
One pulled item from the source — a claim outcome plus the
opaque handle the caller passes back to ack or nack.
Generic over the source’s AckHandle associated type so each
CommandSource impl can choose its own underlying handle shape
(e.g. async_nats::jetstream::Message for the NATS source,
() for an in-memory mock).
Fields§
§outcome: ClaimOutcome§ack: HTrait Implementations§
Auto Trait Implementations§
impl<H> Freeze for Pulled<H>where
H: Freeze,
impl<H> RefUnwindSafe for Pulled<H>where
H: RefUnwindSafe,
impl<H> Send for Pulled<H>where
H: Send,
impl<H> Sync for Pulled<H>where
H: Sync,
impl<H> Unpin for Pulled<H>where
H: Unpin,
impl<H> UnsafeUnpin for Pulled<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for Pulled<H>where
H: UnwindSafe,
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
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 more