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