Expand description
Serve services.
Structs§
- Conn
Limiter - Return type of
ListenerExt::limit_connections. - Conn
Limiter Io - A connection counted by
ConnLimiter. - Connection
Lifetime Limits - Per-connection limits applied by
serve, used to bound the lifetime of individual connections. - Incoming
Stream - An incoming stream.
- MaxConnection
Age - A cap on how long a connection keeps accepting new requests, applied by
serveviaConnectionLifetimeLimits::max_connection_age. - Serve
- Future returned by
serve. - TapIo
- Return type of
ListenerExt::tap_io. - Tokio
Executor - The default executor, which uses [
tokio::spawn]. - With
Graceful Shutdown - Serve future with graceful shutdown enabled.
Traits§
- Executor
- A Tokio executor used by
serveto spawn connection tasks, graceful shutdown tasks, and hyper’s internal tasks (e.g. HTTP/2 connection management). - Listener
- Types that can listen for connections.
- Listener
Ext - Extensions to
Listener.
Functions§
- serve
- Serve the service with the supplied listener.