pub trait MiddleWare: Send {
// Required methods
fn handle(
&mut self,
job: &mut Job,
redis: RedisPool,
next: NextFunc<'_>,
) -> MiddleWareResult;
fn cloned(&mut self) -> Box<dyn MiddleWare>;
}pub trait MiddleWare: Send {
// Required methods
fn handle(
&mut self,
job: &mut Job,
redis: RedisPool,
next: NextFunc<'_>,
) -> MiddleWareResult;
fn cloned(&mut self) -> Box<dyn MiddleWare>;
}