pub struct RequestInterceptorLayer<I> { /* private fields */ }
Expand description
RequestInterceptorLayer
provides a way to wrap services with a specific interceptor using the tower Layer
trait
§Type Parameters
I
: TheRequestInterceptor
implementation.
Implementations§
Trait Implementations§
source§impl<I: Clone> Clone for RequestInterceptorLayer<I>
impl<I: Clone> Clone for RequestInterceptorLayer<I>
source§fn clone(&self) -> RequestInterceptorLayer<I>
fn clone(&self) -> RequestInterceptorLayer<I>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<S, I> Layer<S> for RequestInterceptorLayer<I>where
I: RequestInterceptor + Clone,
impl<S, I> Layer<S> for RequestInterceptorLayer<I>where
I: RequestInterceptor + Clone,
Auto Trait Implementations§
impl<I> Freeze for RequestInterceptorLayer<I>where
I: Freeze,
impl<I> RefUnwindSafe for RequestInterceptorLayer<I>where
I: RefUnwindSafe,
impl<I> Send for RequestInterceptorLayer<I>where
I: Send,
impl<I> Sync for RequestInterceptorLayer<I>where
I: Sync,
impl<I> Unpin for RequestInterceptorLayer<I>where
I: Unpin,
impl<I> UnwindSafe for RequestInterceptorLayer<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: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request