actix_service::boxed

# Function factory

source

    pub fn factory<SF, Req>(
        factory: SF,
    ) -> BoxServiceFactory<SF::Config, Req, SF::Response, SF::Error, SF::InitError>where
        SF: ServiceFactory<Req> + 'static,
        Req: 'static,
        SF::Response: 'static,
        SF::Service: 'static,
        SF::Future: 'static,
        SF::Error: 'static,
        SF::InitError: 'static,

Expand description

Wraps a service factory that returns service trait objects.