Skip to main content

from_fn

Function from_fn 

Source
pub fn from_fn<F, Fut>(mw: F) -> MiddlewareFn
where F: Fn(Request, Next) -> Fut + Send + Sync + 'static, Fut: Future<Output = Response> + Send + 'static,