pub struct DebugPipeline { /* private fields */ }
Expand description
A wrapper around MiddlewarePipelineV2 that provides debugging capabilities
Implementations§
Source§impl DebugPipeline
impl DebugPipeline
pub fn new(pipeline: MiddlewarePipelineV2) -> Self
Sourcepub fn stats(&self) -> HashMap<String, MiddlewareStats>
pub fn stats(&self) -> HashMap<String, MiddlewareStats>
Get execution statistics for all middleware
Sourcepub fn middleware_stats(&self, name: &str) -> Option<MiddlewareStats>
pub fn middleware_stats(&self, name: &str) -> Option<MiddlewareStats>
Get statistics for a specific middleware
Sourcepub fn reset_stats(&self)
pub fn reset_stats(&self)
Reset all statistics
Sourcepub async fn execute_debug<F, Fut>(
&self,
request: ElifRequest,
handler: F,
) -> (ElifResponse, Duration)where
F: FnOnce(ElifRequest) -> Fut + Send + 'static,
Fut: Future<Output = ElifResponse> + Send + 'static,
pub async fn execute_debug<F, Fut>(
&self,
request: ElifRequest,
handler: F,
) -> (ElifResponse, Duration)where
F: FnOnce(ElifRequest) -> Fut + Send + 'static,
Fut: Future<Output = ElifResponse> + Send + 'static,
Execute the pipeline with debug tracking
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DebugPipeline
impl !RefUnwindSafe for DebugPipeline
impl Send for DebugPipeline
impl Sync for DebugPipeline
impl Unpin for DebugPipeline
impl !UnwindSafe for DebugPipeline
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
Mutably borrows from an owned value. Read more