pub struct PublishNext<'a> { /* private fields */ }Expand description
A cursor over the remaining publish middleware, ending in the broker publisher.
Carries the originating delivery’s per-delivery Extensions (via
extensions), so a transactional middleware or publisher can read a
broker-supplied commit token at commit time. A publish with no originating delivery (a fresh
startup publish) sees an empty map.
Implementations§
Source§impl<'a> PublishNext<'a>
impl<'a> PublishNext<'a>
Sourcepub fn run(
self,
out: &'a mut Outgoing<'a>,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn StdError + Send + Sync>>> + Send + 'a>>
pub fn run( self, out: &'a mut Outgoing<'a>, ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn StdError + Send + Sync>>> + Send + 'a>>
Runs the next middleware, or sends the message if the pipeline is exhausted.
Sourcepub fn extensions(&self) -> &Extensions
pub fn extensions(&self) -> &Extensions
The originating delivery’s per-delivery Extensions, for a transactional middleware to
read a broker-supplied commit token. Empty for a publish with no originating delivery.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PublishNext<'a>
impl<'a> !UnwindSafe for PublishNext<'a>
impl<'a> Freeze for PublishNext<'a>
impl<'a> Send for PublishNext<'a>
impl<'a> Sync for PublishNext<'a>
impl<'a> Unpin for PublishNext<'a>
impl<'a> UnsafeUnpin for PublishNext<'a>
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