Skip to main content

Module native

Module native 

Source

Structs§

MulticoreServer
Thread-per-core launcher with one compiled, non-Send app per worker.
Server
A native HTTP/1 server whose request execution remains thread-local.
ServerLimits
Wire-level resource limits for the native protocol adapters.
ShutdownHandle
Thread-safe trigger used to stop accepting connections.
ShutdownSignal
Future resolved when its paired ShutdownHandle is triggered.

Enums§

WorkerPriority
How worker threads schedule against everything else on the machine.

Constants§

DEFAULT_MAX_BODY_BYTES
Default maximum request body accepted by the socket adapter.

Traits§

HttpMiddleware
Synchronous middleware interception points shared by every HTTP adapter.

Functions§

shutdown_channel
Creates one explicit graceful-shutdown channel.
termination_channel
Creates a graceful-shutdown channel triggered by process termination.