Skip to main content

Module serve

Module serve 

Source
Expand description

Serve services.

Structs§

ConnLimiter
Return type of ListenerExt::limit_connections.
ConnLimiterIo
A connection counted by ConnLimiter.
ConnectionLifetimeLimits
Per-connection limits applied by serve, used to bound the lifetime of individual connections.
IncomingStream
An incoming stream.
MaxConnectionAge
A cap on how long a connection keeps accepting new requests, applied by serve via ConnectionLifetimeLimits::max_connection_age.
Serve
Future returned by serve.
TapIo
Return type of ListenerExt::tap_io.
TokioExecutor
The default executor, which uses [tokio::spawn].
WithGracefulShutdown
Serve future with graceful shutdown enabled.

Traits§

Executor
A Tokio executor used by serve to spawn connection tasks, graceful shutdown tasks, and hyper’s internal tasks (e.g. HTTP/2 connection management).
Listener
Types that can listen for connections.
ListenerExt
Extensions to Listener.

Functions§

serve
Serve the service with the supplied listener.