Crate actix_service

Source
Expand description

See Service docs for information on this crate’s foundational trait.

Modules§

boxed
Trait object forms of services and service factories.

Macros§

always_ready
An implementation of poll_ready that always signals readiness.
forward_ready
An implementation of poll_ready that forwards readiness checks to a named struct field.

Structs§

ApplyTransform
Apply a Transform to a Service.

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 operation from Request to a Response.
ServiceExt
An extension trait for Services that provides a variety of convenient adapters.
ServiceFactory
Factory for creating Services.
ServiceFactoryExt
An extension trait for ServiceFactorys that provides a variety of convenient adapters.
Transform
Defines the interface of a service factory that wraps inner service during construction.
TransformExt
An extension trait for Transforms that provides a variety of convenient adapters.

Functions§

apply
Apply a Transform to a Service.
apply_cfg
Convert Fn(Config, &Service1) -> Future<Service2> fn to a service factory.
apply_cfg_factory
Convert Fn(Config, &ServiceFactory1) -> Future<ServiceFactory2> fn to a service factory.
apply_fn
Apply transform function to a service.
apply_fn_factory
Service factory that produces 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 U to a service S
map_config
Adapt external config argument to a config for provided service factory
unit_config
Replace config with unit.