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.
Pipeline service - pipeline allows to compose multiple service into one service.
Pipeline factory
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 a Response
.Factory for creating
Service
s.Functions
Apply middleware to a service.
Apply transform function to a service.
Service factory that produces
apply_fn
service.Create
ServiceFactory
for function that can produce servicesCreate
ServiceFactory
for function that accepts config argument and can produce servicesCreate
ServiceFactory
for function that can act as a Service
Convert object of type
T
to a service S
Adapt external config argument to a config for provided service factory
Constructs new pipeline with one service in pipeline chain.
Constructs new pipeline factory with one service factory.
Replace config with unit