pub struct TrackingLayer<DB: Database, Records> { /* private fields */ }Expand description
The subscription middleware of an Outbox, from
layer.
A delivery under a registered name that carries OUTBOX_ID_HEADER
takes its record with Fetch before the handler runs: a record taken or processed already is
acknowledged without the handler, and a fetch that fails, or a missing pool, retries the
delivery without it. After the handler, Ack, Retry or Discard settles the record by the
outcome; a settlement that fails is logged, and the handler’s outcome stands.
A delivery under any other name, or without the header, runs the handler as it is, and its headers are not read.
Trait Implementations§
Source§impl<DB: Database, Records: RecordList<DB>> BlanketLayer for TrackingLayer<DB, Records>
impl<DB: Database, Records: RecordList<DB>> BlanketLayer for TrackingLayer<DB, Records>
Auto Trait Implementations§
impl<DB, Records> !RefUnwindSafe for TrackingLayer<DB, Records>
impl<DB, Records> !UnwindSafe for TrackingLayer<DB, Records>
impl<DB, Records> Freeze for TrackingLayer<DB, Records>
impl<DB, Records> Send for TrackingLayer<DB, Records>
impl<DB, Records> Sync for TrackingLayer<DB, Records>
impl<DB, Records> Unpin for TrackingLayer<DB, Records>
impl<DB, Records> UnsafeUnpin for TrackingLayer<DB, Records>
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, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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