Expand description
Defines types for a middleware pipeline
Structs
- When using middleware, one or more
Middleware
are combined to form aPipeline
.Middleware
are invoked strictly in the order they’re added to thePipeline
. - Allows a pipeline to be defined by adding
NewMiddleware
values, and building aPipeline
.
Traits
- A heterogeneous list of
Handle<P, _>
values, whereP
is a pipeline type. The pipelines are borrowed and invoked in order to serve a request.
Functions
- Wraps the current set of
Pipeline
instances into a thread-safe reference counting pointer for use with theRouter
. - Begins defining a new pipeline.
- Create an empty set of
Pipeline
instances. - Constructs a pipeline from a single middleware.
- Creates a single pipeline for use in applications with straightforward use cases for middleware.
Type Definitions
- A set of
Pipeline
instances that is currently being defined, and can have morePipeline
instances added. - Represents the set of all
Pipeline
instances that are available for use when building aRouter
. APipelineSet
is “frozen”. - A pipeline chain which contains only the single pipeline in a
SinglePipelineSet
. - A
Handle
for borrowing the only pipeline from aSinglePipelineSet
. - A
PipelineSet
which contains only a single pipeline.