pub trait Ack<Task, Res, Codec> {
type Context;
type AckError: Error;
// Required method
fn ack(
&mut self,
ctx: &Self::Context,
response: &Response<Res>,
) -> impl Future<Output = Result<(), Self::AckError>> + Send;
}
Expand description
A trait for acknowledging successful processing
This trait is called even when a task fails.
This is a way of a [Backend
] to save the result of a job or message
Required Associated Types§
Required Methods§
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.