[][src]Crate requiem_service

Modules

boxed
dev

Structs

Pipeline

Pipeline service - pipeline allows to compose multiple service into one service.

PipelineFactory

Pipeline factory

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 that wraps inner service during construction.

Functions

apply

Apply transform to a service.

apply_cfg

Convert Fn(Config, &mut Service1) -> Future<Service2> fn to a service factory

apply_cfg_factory

Convert Fn(Config, &mut Service1) -> Future<Service2> fn to a service factory

apply_fn

Apply tranform function to a service.

apply_fn_factory

Service factory that prodices apply_fn service.

fn_factory

Create ServiceFactory for function that can produce services

fn_factory_with_config

Create ServiceFactory for function that accepts config argument and can produce services

fn_service

Create ServiceFactory for function that can act as a Service

into_service

Convert object of type T to a service S

map_config

Adapt external config argument to a config for provided service factory

pipeline

Contruct new pipeline with one service in pipeline chain.

pipeline_factory

Contruct new pipeline factory with one service factory.

unit_config

Replace config with unit