pub struct ConditionalInterceptor<I, F>where
I: ResponseInterceptor,
F: Fn(&ResponseInterceptorContext<'_>, &Response) -> bool + Send + Sync,{ /* private fields */ }Expand description
Implementations§
Source§impl<I, F> ConditionalInterceptor<I, F>where
I: ResponseInterceptor,
F: Fn(&ResponseInterceptorContext<'_>, &Response) -> bool + Send + Sync,
impl<I, F> ConditionalInterceptor<I, F>where
I: ResponseInterceptor,
F: Fn(&ResponseInterceptorContext<'_>, &Response) -> bool + Send + Sync,
Trait Implementations§
Source§impl<I, F> ResponseInterceptor for ConditionalInterceptor<I, F>where
I: ResponseInterceptor,
F: Fn(&ResponseInterceptorContext<'_>, &Response) -> bool + Send + Sync,
impl<I, F> ResponseInterceptor for ConditionalInterceptor<I, F>where
I: ResponseInterceptor,
F: Fn(&ResponseInterceptorContext<'_>, &Response) -> bool + Send + Sync,
Auto Trait Implementations§
impl<I, F> Freeze for ConditionalInterceptor<I, F>
impl<I, F> RefUnwindSafe for ConditionalInterceptor<I, F>where
I: RefUnwindSafe,
F: RefUnwindSafe,
impl<I, F> Send for ConditionalInterceptor<I, F>
impl<I, F> Sync for ConditionalInterceptor<I, F>
impl<I, F> Unpin for ConditionalInterceptor<I, F>
impl<I, F> UnwindSafe for ConditionalInterceptor<I, F>where
I: UnwindSafe,
F: 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).