AcknowledgementExt

Trait AcknowledgementExt 

Source
pub trait AcknowledgementExt<Args, Ctx, Source, Middleware, Ack, Res>: Sized
where Source: Backend<Args = Args, Context = Ctx>, Ack: Acknowledge<Res, Ctx, Source::IdType>,
{ // Required method fn ack_with( self, ack: Ack, ) -> WorkerBuilder<Args, Ctx, 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, Ctx, 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", so this trait is not object safe.

Implementors§

Source§

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