pub struct TrackingPublishLayer<DB: Database, Records> { /* private fields */ }Expand description
The publish middleware of an Outbox, from
publish_layer.
A message under a registered name is recorded through its record type’s Publish, then sent
with OUTBOX_ID_HEADER; a record that fails fails the publish, and the message is not sent.
A message under any other name is sent as it is.
Trait Implementations§
Source§impl<DB: Database, Records: RecordList<DB>> PublishLayer for TrackingPublishLayer<DB, Records>
impl<DB: Database, Records: RecordList<DB>> PublishLayer for TrackingPublishLayer<DB, Records>
Source§async fn on_publish<'a, N: PublishPipeline, P: Publisher>(
&'a self,
out: &'a mut Outgoing<'a>,
next: PublishNext<'a, N, P>,
) -> Result<(), Box<dyn StdError + Send + Sync>>
async fn on_publish<'a, N: PublishPipeline, P: Publisher>( &'a self, out: &'a mut Outgoing<'a>, next: PublishNext<'a, N, P>, ) -> Result<(), Box<dyn StdError + Send + Sync>>
Handle the outgoing message, calling
next to continue the pipeline.Auto Trait Implementations§
impl<DB, Records> !RefUnwindSafe for TrackingPublishLayer<DB, Records>
impl<DB, Records> !UnwindSafe for TrackingPublishLayer<DB, Records>
impl<DB, Records> Freeze for TrackingPublishLayer<DB, Records>
impl<DB, Records> Send for TrackingPublishLayer<DB, Records>
impl<DB, Records> Sync for TrackingPublishLayer<DB, Records>
impl<DB, Records> Unpin for TrackingPublishLayer<DB, Records>
impl<DB, Records> UnsafeUnpin for TrackingPublishLayer<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