Module layers

Module layers 

Source
Expand description

Layers for building middleware stacks

Structs§

Identity
A no-op middleware.
LayerFn
A Layer implemented by a closure. See the docs for layer_fn for more details.
Stack
Two middlewares chained together.

Traits§

Layer
Decorates a Service, transforming either the request or the response.
Service
An asynchronous function from a Request to a Response.

Functions§

layer_fn
Returns a new LayerFn that implements Layer by calling the given function.