Module tarpc::server

source ·
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

Traits

  • The server end of an open connection with a client, receiving requests from, and sending responses to, the client. Channel is a Transport with request lifecycle management.
  • Equivalent to a FnOnce(Req) -> impl Future<Output = Resp>.

Functions

  • Creates a Serve wrapper around a FnOnce(context::Context, Req) -> impl Future<Output = Result<Resp, ServerError>>.