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