pub struct PreProcessingMiddleware { /* private fields */ }
Expand description
A pre-processing middleware that has been configured but has not yet been registered with a Blueprint
.
§Guide
Check out Blueprint::pre_process
for an introduction to pre_processing middlewares in Pavex.
§Use cases
PreProcessingMiddleware
is primarily used by
kits
to allow users to customize (or disable!)
the bundled middlewares before registering them with a Blueprint
.
Implementations§
Source§impl PreProcessingMiddleware
impl PreProcessingMiddleware
Sourcepub fn new(callable: RawIdentifiers) -> Self
pub fn new(callable: RawIdentifiers) -> Self
Create a new (unregistered) pre_processing middleware.
Check out the documentation of Blueprint::pre_process
for more details
on pre-processing middlewares.
Sourcepub fn error_handler(self, error_handler: RawIdentifiers) -> Self
pub fn error_handler(self, error_handler: RawIdentifiers) -> Self
Register an error handler for this middleware.
Check out the documentation of RegisteredPreProcessingMiddleware::error_handler
for more details.
Sourcepub fn register(
self,
bp: &mut Blueprint,
) -> RegisteredPreProcessingMiddleware<'_>
pub fn register( self, bp: &mut Blueprint, ) -> RegisteredPreProcessingMiddleware<'_>
Register this middleware with a Blueprint
.
Check out the documentation of Blueprint::pre_process
for more details.
Trait Implementations§
Source§impl Clone for PreProcessingMiddleware
impl Clone for PreProcessingMiddleware
Source§fn clone(&self) -> PreProcessingMiddleware
fn clone(&self) -> PreProcessingMiddleware
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more