Expand description
Provides a server that concurrently handles many connections sending multiplexed requests.
Modules
- Provides helper methods for streams of Channels.
- Provides functionality to apply server limits.
- Hooks for horizontal functionality that can run either before or after a request is executed.
Structs
- BaseChannel is the standard implementation of a
Channel
. - Settings that control the behavior of channels.
- A request produced by Channel::requests.
- A stream of requests coming over a channel.
Requests
also drives the sending of responses, so it must be continually polled to ensure progress. - A fail-safe to ensure requests are properly canceled if request processing is aborted before completing.
- A Serve wrapper around a Fn.
- A request tracked by a
Channel
.
Traits
- The server end of an open connection with a client, receiving requests from, and sending responses to, the client.
Channel
is aTransport
with request lifecycle management. - Equivalent to a
FnOnce(Req) -> impl Future<Output = Resp>
.
Functions
- Creates a
Serve
wrapper around aFnOnce(context::Context, Req) -> impl Future<Output = Result<Resp, ServerError>>
.