Crate ntex_service
source ·Expand description
See Service docs for information on this crate’s foundational trait.
Modules
Macros
- An implementation of [
poll_ready] that forwards readiness checks to a field. - An implementation of [
poll_shutdown] that forwards readiness checks to a field.
Structs
- Identity is a middleware.
- Container for a service.
- Stack of middlewares.
Traits
- Trait for types that can be converted to a
Service - Trait for types that can be converted to a
ServiceFactory - The
Middlewaretrait defines the interface of a service factory that wraps inner service during construction. - An asynchronous function of
Requestto aResponse. - Factory for creating
Services.
Functions
- Apply middleware to a service.
- Apply transform function to a service.
- Service factory that produces
apply_fnservice. - Constructs new chain with one service.
- Constructs new chain factory with one service factory.
- 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 - Create
FnShutdownfor function that can act as aon_shutdowncallback. - Convert object of type
Tto a serviceS - Adapt external config argument to a config for provided service factory
- Replace config with unit