Struct pavex::blueprint::middleware::PostProcessingMiddleware
source · 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 moreAuto Trait Implementations§
impl Freeze for PostProcessingMiddleware
impl RefUnwindSafe for PostProcessingMiddleware
impl Send for PostProcessingMiddleware
impl Sync for PostProcessingMiddleware
impl Unpin for PostProcessingMiddleware
impl UnwindSafe for PostProcessingMiddleware
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)