Module server

Source
Expand description

Provides a server that concurrently handles many connections sending multiplexed requests.

Structs§

BaseChannel
BaseChannel lifts a Transport to a Channel by tracking in-flight requests.
ChannelFilter
A single-threaded filter that drops channels based on per-key limits.
ClientHandler
A running handler serving all requests coming over a channel.
Config
Settings that control the behavior of the server.
RequestHandler
A future fulfilling a single client request.
Server
Manages clients, serving multiplexed requests over each connection.
Throttler
A Channel that limits the number of concurrent requests by throttling.
ThrottlerStream
A stream of throttling channels.

Traits§

Channel
The server end of an open connection with a client, streaming in requests from, and sinking responses to, the client.
Handler
A utility trait enabling a stream to fluently chain a request handler.
Serve
Basically a Fn(Req) -> impl Future<Output = Resp>;

Functions§

new
Returns a new server with configuration specified config.