Expand description
Defines types for a middleware pipeline
Structs§
- Pipeline
- When using middleware, one or more
Middleware
are combined to form aPipeline
.Middleware
are invoked strictly in the order they’re added to thePipeline
. - Pipeline
Builder - Allows a pipeline to be defined by adding
NewMiddleware
values, and building aPipeline
.
Traits§
- Pipeline
Handle Chain - 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§
- finalize_
pipeline_ set - Wraps the current set of
Pipeline
instances into a thread-safe reference counting pointer for use with theRouter
. - new_
pipeline - Begins defining a new pipeline.
- new_
pipeline_ set - Create an empty set of
Pipeline
instances. - single_
middleware - Constructs a pipeline from a single middleware.
- single_
pipeline - Creates a single pipeline for use in applications with straightforward use cases for middleware.
Type Aliases§
- Editable
Pipeline Set - A set of
Pipeline
instances that is currently being defined, and can have morePipeline
instances added. - Pipeline
Set - Represents the set of all
Pipeline
instances that are available for use when building aRouter
. APipelineSet
is “frozen”. - Single
Pipeline Chain - A pipeline chain which contains only the single pipeline in a
SinglePipelineSet
. - Single
Pipeline Handle - A
Handle
for borrowing the only pipeline from aSinglePipelineSet
. - Single
Pipeline Set - A
PipelineSet
which contains only a single pipeline.