Struct madsim_tonic::service::interceptor::InterceptorLayer
source · pub struct InterceptorLayer<F> { /* private fields */ }
Expand description
A gRPC interceptor that can be used as a [Layer
],
created by calling interceptor
.
See Interceptor
for more details.
Trait Implementations§
source§impl<F> Clone for InterceptorLayer<F>where
F: Clone,
impl<F> Clone for InterceptorLayer<F>where
F: Clone,
source§fn clone(&self) -> InterceptorLayer<F>
fn clone(&self) -> InterceptorLayer<F>
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<F> Debug for InterceptorLayer<F>where
F: Debug,
impl<F> Debug for InterceptorLayer<F>where
F: Debug,
source§impl<S, F> Layer<S> for InterceptorLayer<F>where
F: Interceptor + Clone,
impl<S, F> Layer<S> for InterceptorLayer<F>where
F: Interceptor + Clone,
§type Service = InterceptedService<S, F>
type Service = InterceptedService<S, F>
The wrapped service
source§fn layer(&self, service: S) -> <InterceptorLayer<F> as Layer<S>>::Service
fn layer(&self, service: S) -> <InterceptorLayer<F> as Layer<S>>::Service
Wrap the given service with the middleware, returning a new service
that has been decorated with the middleware.
impl<F> Copy for InterceptorLayer<F>where
F: Copy,
Auto Trait Implementations§
impl<F> RefUnwindSafe for InterceptorLayer<F>where
F: RefUnwindSafe,
impl<F> Send for InterceptorLayer<F>where
F: Send,
impl<F> Sync for InterceptorLayer<F>where
F: Sync,
impl<F> Unpin for InterceptorLayer<F>where
F: Unpin,
impl<F> UnwindSafe for InterceptorLayer<F>where
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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