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§
- ApplyTransform 
- Apply a Transformto aService.
Traits§
- IntoService 
- Trait for types that can be converted to a Service
- IntoService Factory 
- Trait for types that can be converted to a ServiceFactory
- Service
- An asynchronous operation from Requestto aResponse.
- ServiceExt 
- An extension trait for Services that provides a variety of convenient adapters.
- ServiceFactory 
- Factory for creating Services.
- ServiceFactory 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.
- TransformExt 
- 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.