pub trait With<Args>:
Clone
+ Send
+ Sync
+ 'static {
type Output;
// Required method
fn with(
&self,
args: Args,
next: Next,
) -> impl Future<Output = Self::Output> + Send;
}Expand description
Describes a generic middleware handler that could take 0 or N parameters and Next middleware
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.