Skip to main content

AcknowledgementExt

Trait AcknowledgementExt 

Source
pub trait AcknowledgementExt<Args, Source, Middleware, Ack, Res>: Sized
where Source: Backend, Ack: Acknowledge<Res>,
{ // Required method fn ack_with( self, ack: Ack, ) -> WorkerBuilder<Args, Source, Stack<AcknowledgeLayer<Ack>, Middleware>>; }
Expand description

Extension trait for adding acknowledgment handling to workers

See module level documentation for more details.

Required Methods§

Source

fn ack_with( self, ack: Ack, ) -> WorkerBuilder<Args, Source, Stack<AcknowledgeLayer<Ack>, Middleware>>

Add an acknowledgment handler to the worker

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Args, B, M, Ack, Res> AcknowledgementExt<Args, B, M, Ack, Res> for WorkerBuilder<Args, B, M>
where M: Layer<AcknowledgeLayer<Ack>>, Ack: Acknowledge<Res>, B: Backend,