Struct pavex::blueprint::middleware::PreProcessingMiddleware
source · 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