[][src]Module tower::layer

Layer traits and extensions.

A layer decorates an service and provides additional functionality. It allows other services to be composed with the service that implements layer.

A middleware implements the [Layer] and [Service] trait.

Structs

Identity

A no-op middleware.

Stack

Two middlewares chained together.

Traits

Layer

Decorates a Service, transforming either the request or the response.