Skip to main content

ready_factory

Function ready_factory 

Source
pub fn ready_factory<Sf, St, Req>(
    factory: impl IntoServiceFactory<Sf, St, Req>,
) -> ServiceChainFactory<ReadyFactory<Sf>, St, Req>
where Sf: ServiceFactory<St, Req>,
Expand description

Wraps each service created by a factory with independent readiness.

Every successful creation gets a fresh readiness cache, even if the factory returns shared handles to the same inner service. See ready().