Expand description
Defines types for a middleware pipeline
Structs
- When using middleware, one or more
Middlewareare combined to form aPipeline.Middlewareare invoked strictly in the order they’re added to thePipeline. - Allows a pipeline to be defined by adding
NewMiddlewarevalues, and building aPipeline.
Traits
- A heterogeneous list of
Handle<P, _>values, wherePis a pipeline type. The pipelines are borrowed and invoked in order to serve a request.
Functions
- Wraps the current set of
Pipelineinstances into a thread-safe reference counting pointer for use with theRouter. - Begins defining a new pipeline.
- Create an empty set of
Pipelineinstances. - 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
Pipelineinstances that is currently being defined, and can have morePipelineinstances added. - Represents the set of all
Pipelineinstances that are available for use when building aRouter. APipelineSetis “frozen”. - A pipeline chain which contains only the single pipeline in a
SinglePipelineSet. - A
Handlefor borrowing the only pipeline from aSinglePipelineSet. - A
PipelineSetwhich contains only a single pipeline.