Skip to main content

Crate ntex_server

Crate ntex_server 

Source
Expand description

Worker-based server infrastructure for ntex.

WorkerPool runs services across one or more worker threads. The net module builds TCP and Unix domain socket servers on top of that pool. Server is the controller used to pause, resume, stop, or await a running server.

Modules§

net
General-purpose network server.

Structs§

ListenerMetrics
Metrics of a single listener.
NoConfig
Application configuration that creates unit state.
RuntimeMetrics
Runtime statistics of a worker.
Server
Controller and completion future for a running server.
ServerMetrics
Snapshot of server metrics.
Worker
Server worker.
WorkerId
Identifier assigned to a server worker.
WorkerMetrics
Metrics of a single worker.
WorkerPool
Builder for a pool of server workers.
WorkerStop
Future returned when stopping a worker.

Enums§

Affinity
CPU affinity of worker threads.
LoadBalancing
How the server distributes items between workers.
ServerStatus
Server status.
WorkerStatus
Worker status.

Traits§

ServerAppConfig
Creates application state independently for each server worker.
ServerConfiguration
Worker service configuration.