[][src]Crate tower

fn(Request) -> Future<Response>

Tower is a library of modular and reusable components for building robust networking clients and servers.

Re-exports

pub use crate::builder::ServiceBuilder;
pub use crate::util::ServiceExt;

Modules

buffer

Buffer requests when the inner service is out of capacity.

builder

Builder types to compose layers and services

discover

Tower service discovery

layer

A collection of Layer based tower services

limit

Tower middleware for limiting requests.

load_shed

Tower middleware for shedding load when inner services aren't ready.

retry

Tower middleware for retrying "failed" requests.

timeout

Tower middleware that applies a timeout to requests.

util

Combinators for working with Services

Traits

MakeConnection

The MakeConnection trait is used to create transports

MakeService

Creates new Service values.

Service

An asynchronous function from Request to a Response.

Functions

service_fn

Returns a new ServiceFn with the given closure.