Skip to main content

IntoMiddleware

Trait IntoMiddleware 

Source
pub trait IntoMiddleware {
    // Required method
    fn into_middleware(self) -> Middleware;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl IntoMiddleware for Middleware

Source§

impl<F, Fut> IntoMiddleware for F
where F: Fn(Request, Next) -> Fut + Send + Sync + 'static, Fut: Future<Output = Response> + Send + 'static,