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§
- Apply
Transform - Apply a
Transform
to 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
Request
to aResponse
. - Service
Ext - An extension trait for
Service
s that provides a variety of convenient adapters. - Service
Factory - Factory for creating
Service
s. - Service
Factory Ext - An extension trait for
ServiceFactory
s 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
Transform
s that provides a variety of convenient adapters.
Functions§
- apply
- Apply a
Transform
to 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_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 aService
- into_
service - Convert object of type
U
to a serviceS
- map_
config - Adapt external config argument to a config for provided service factory
- unit_
config - Replace config with unit.