[][src]Crate actix_service

Modules

boxed
dev

Structs

Pipeline

Pipeline service

PipelineFactory

Pipeline constructor

Traits

IntoService

Trait for types that can be converted to a Service

IntoServiceFactory

Trait for types that can be converted to a ServiceFactory

Service

An asynchronous function from Request to a Response.

ServiceFactory

Creates new Service values.

Transform

The Transform trait defines the interface of a Service factory. Transform is often implemented for middleware, defining how to construct a middleware Service. A Service that is constructed by the factory takes the Service that follows it during execution as a parameter, assuming ownership of the next Service.

Functions

apply

Apply transform to a service. Function returns services factory that in initialization creates service and applies transform to this service.

apply_cfg

Convert Fn(&Config, &mut Service) -> Future<Service> fn to a NewService

apply_cfg_factory

Convert Fn(&Config, &mut Service) -> Future<Service> fn to a NewService Service get constructor from NewService.

apply_fn

Apply tranform function to a service

apply_fn_factory

Create factory for apply service.

factory_fn

Create ServiceFactory for function that can produce services

factory_fn_cfg

Create ServiceFactory for function that can produce services with configuration

map_config

Adapt external config to a config for provided new service

pipeline
pipeline_factory
service_fn

Create ServiceFactory for function that can act as a Service

service_fn2
unit_config

Replace config with unit