Skip to main content

apply

Function apply 

Source
pub fn apply<Sf, St, Req, M>(
    mw: M,
    factory: impl IntoServiceFactory<Sf, St, Req>,
) -> ServiceChainFactory<ApplyMiddleware<M, Sf>, St, Req>
where Sf: ServiceFactory<St, Req>, M: Middleware<Sf::Service, St>,
Expand description

Applies middleware to every service produced by a factory.