[][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;

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

Layer traits and extensions.

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

Service

An asynchronous function from a Request to a Response.

ServiceExt

An extension trait for Services that provides a variety of convenient adapters

Functions

service_fn

Returns a new ServiceFn with the given closure.