Crate ntex_service
source ·Expand description
See Service
docs for information on this crate’s foundational trait.
Modules§
Macros§
- An implementation of [
ready
] that forwards readiness checks to a field. - An implementation of [
shutdown
] that forwards shutdown checks to a field.
Structs§
- Identity is a middleware.
- Container for a service.
- Bound container for a service.
- Pipeline call future
- 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
Middleware
trait defines the interface of a service factory that wraps inner service during construction. - An asynchronous function of
Request
to aResponse
. - Factory for creating
Service
s.
Functions§
- Apply middleware to a service.
- Apply transform function to a service.
- Service factory that produces
apply_fn
service. - Constructs new chain with one service.
- Constructs new chain factory with one service factory.
- Create
ServiceFactory
for function that can produce services - Create
ServiceFactory
for function that accepts config argument and can produce services - Create
ServiceFactory
for function that can act as aService
- Create
FnShutdown
for function that can act as aon_shutdown
callback. - Adapt external config argument to a config for provided service factory
- Replace config with unit