Struct 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> Clone for InterceptorLayer<F>
impl<F: Clone> Clone for InterceptorLayer<F>
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> Debug for InterceptorLayer<F>
impl<F: Debug> Debug for InterceptorLayer<F>
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,
impl<F: Copy> Copy for InterceptorLayer<F>
Auto Trait Implementations§
impl<F> Freeze for InterceptorLayer<F>where
F: Freeze,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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