pub struct ResponseInterceptorMiddleware<I>where
I: ResponseInterceptor,{ /* private fields */ }Expand description
Implementations§
Source§impl<I> ResponseInterceptorMiddleware<I>where
I: ResponseInterceptor,
impl<I> ResponseInterceptorMiddleware<I>where
I: ResponseInterceptor,
Trait Implementations§
Source§impl<I> Middleware for ResponseInterceptorMiddleware<I>where
I: ResponseInterceptor,
impl<I> Middleware for ResponseInterceptorMiddleware<I>where
I: ResponseInterceptor,
Source§fn before<'a>(
&'a self,
_ctx: &'a RequestContext,
req: &'a mut Request,
) -> BoxFuture<'a, ControlFlow>
fn before<'a>( &'a self, _ctx: &'a RequestContext, req: &'a mut Request, ) -> BoxFuture<'a, ControlFlow>
Called before the handler executes. Read more
Auto Trait Implementations§
impl<I> Freeze for ResponseInterceptorMiddleware<I>where
I: Freeze,
impl<I> RefUnwindSafe for ResponseInterceptorMiddleware<I>where
I: RefUnwindSafe,
impl<I> Send for ResponseInterceptorMiddleware<I>
impl<I> Sync for ResponseInterceptorMiddleware<I>
impl<I> Unpin for ResponseInterceptorMiddleware<I>where
I: Unpin,
impl<I> UnwindSafe for ResponseInterceptorMiddleware<I>where
I: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).