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 moreAuto Trait Implementations§
impl Freeze for PreProcessingMiddleware
impl RefUnwindSafe for PreProcessingMiddleware
impl Send for PreProcessingMiddleware
impl Sync for PreProcessingMiddleware
impl Unpin for PreProcessingMiddleware
impl UnwindSafe for PreProcessingMiddleware
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
)