pub trait Middleware<C>:
Send
+ Sync
+ 'static {
// Required method
fn handle(
&self,
cx: Context<C>,
next: Next<C>,
) -> impl Future<Output = Outcome> + Send;
}Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".