Expand description
ntex - framework for composable network services
§Package feature
openssl- enables ssl support viaopensslcraterustls- enables ssl support viarustlscratecompress- enables compression support in http and web modulescookie- enables cookie support in http and web modules
Modules§
- channel
- Communication primitives
- codec
- Utilities for encoding and decoding frames.
- connect
- Tcp connector service
- http
- Http protocol support.
- io
- IO streaming utilities.
- router
- Resource path matching library.
- rt
- A runtime implementation that runs everything on the current thread.
- server
- General purpose tcp server
- service
- task
- A synchronization primitive for task wakeup.
- testing
- IO testing utilities.
- time
- Utilities for tracking time.
- tls
- TLS support for ntex ecosystem.
- util
- web
- Web framework for Rust.
- ws
- WebSocket protocol support.
Macros§
- forward_
poll - An implementation of
crate::Service::pollthat forwards poll call to a field. - forward_
ready - An implementation of
crate::Service::readythat forwards readiness checks to a field. - forward_
shutdown - An implementation of
crate::Service::shutdownthat forwards shutdown checks to a field.
Structs§
- Pipeline
- Container for a service.
- Service
Ctx
Traits§
- Into
Service - Trait for types that can be converted to a
Service - Into
Service Factory - Trait for types that can be converted to a
ServiceFactory - Middleware
- The
Middlewaretrait defines the interface of a service factory that wraps inner service during construction. - Service
- An asynchronous function of
Requestto aResponse. - Service
Factory - Factory for creating
Services.
Functions§
- chain
- Constructs new chain with one service.
- chain_
factory - Constructs new chain factory with one service factory.
- fn_
service - Create
ServiceFactoryfor function that can act as aService