Skip to main content

factory

Function factory 

Source
pub fn factory<Sf, St, Req>(
    factory: Sf,
) -> BoxServiceFactory<St, Req, <Sf as ServiceFactory<St, Req>>::Res, <Sf as ServiceFactory<St, Req>>::Error, <Sf as ServiceFactory<St, Req>>::InitError>
where Sf: ServiceFactory<St, Req> + 'static, St: 'static, Req: 'static,
Expand description

Creates a boxed service factory.