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_readythat always signals readiness. - forward_
ready - An implementation of
poll_readythat forwards readiness checks to a named struct field.
Structs§
- Apply
Transform - Apply a
Transformto aService.
Traits§
- Into
Service - Trait for types that can be converted to a
Service - Into
Service Factory - Trait for types that can be converted to a
ServiceFactory - Service
- An asynchronous operation from
Requestto aResponse. - Service
Ext - An extension trait for
Services that provides a variety of convenient adapters. - Service
Factory - Factory for creating
Services. - Service
Factory Ext - 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.
- Transform
Ext - An extension trait for
Transforms that provides a variety of convenient adapters.
Functions§
- apply
- Apply a
Transformto aService. - 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_fnservice. - fn_
factory - Create
ServiceFactoryfor function that can produce services - fn_
factory_ with_ config - Create
ServiceFactoryfor function that accepts config argument and can produce services - fn_
service - Create
ServiceFactoryfor function that can act as aService - into_
service - Convert object of type
Uto a serviceS - map_
config - Adapt external config argument to a config for provided service factory
- unit_
config - Replace config with unit.