Crate actix_service
source ·Expand description
See Service docs for information on this crate’s foundational trait.
Modules§
- Trait object forms of services and service factories.
Macros§
- An implementation of
poll_readythat always signals readiness. - An implementation of
poll_readythat forwards readiness checks to a named struct field.
Structs§
Traits§
- Trait for types that can be converted to a
Service - Trait for types that can be converted to a
ServiceFactory - An asynchronous operation from
Requestto aResponse. - An extension trait for
Services that provides a variety of convenient adapters. - Factory for creating
Services. - An extension trait for
ServiceFactorys that provides a variety of convenient adapters. - Defines the interface of a service factory that wraps inner service during construction.
- An extension trait for
Transforms that provides a variety of convenient adapters.
Functions§
- Convert
Fn(Config, &Service1) -> Future<Service2>fn to a service factory. - Convert
Fn(Config, &ServiceFactory1) -> Future<ServiceFactory2>fn to a service factory. - Apply transform function to a service.
- Service factory that produces
apply_fnservice. - Create
ServiceFactoryfor function that can produce services - Create
ServiceFactoryfor function that accepts config argument and can produce services - Create
ServiceFactoryfor function that can act as aService - Convert object of type
Uto a serviceS - Adapt external config argument to a config for provided service factory
- Replace config with unit.