Crate ntex

source ·
Expand description

ntex - framework for composable network services

§Package feature

  • openssl - enables ssl support via openssl crate
  • rustls - enables ssl support via rustls crate
  • compress - enables compression support in http and web modules
  • cookie - enables cookie support in http and web modules

Modules§

  • Communication primitives
  • Utilities for encoding and decoding frames.
  • Tcp connector service
  • Http protocol support.
  • IO streaming utilities.
  • Resource path matching library.
  • A runtime implementation that runs everything on the current thread.
  • General purpose tcp server
  • A synchronization primitive for task wakeup.
  • IO testing utilities.
  • Utilities for tracking time.
  • TLS support for ntex ecosystem.
  • Web framework for Rust.
  • WebSocket protocol support.

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§

  • Constructs new chain with one service.
  • Constructs new chain factory with one service factory.
  • Create ServiceFactory for function that can act as a Service
  • Convert object of type T to a service S

Attribute Macros§

  • Marks async function to be executed by ntex system.
  • Marks async test function to be executed by ntex runtime.