Crate ntex_service

source ·
Expand description

See Service docs for information on this crate’s foundational trait.

Modules§

Macros§

Structs§

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 Services.

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 a Service
  • Create FnShutdown for function that can act as a on_shutdown callback.
  • Convert object of type T to a service S
  • Adapt external config argument to a config for provided service factory
  • Replace config with unit