Type Alias tonic::service::interceptor::InterceptorFn

source ·
pub type InterceptorFn<F> = InterceptorLayer<F>;
👎Deprecated since 0.5.1: Please use the InterceptorLayer type instead
Expand description

A gRPC interceptor that can be used as a Layer, created by calling interceptor.

See Interceptor for more details.

Aliased Type§

struct InterceptorFn<F> { /* private fields */ }

Trait Implementations

source§

impl<F: Clone> Clone for InterceptorLayer<F>

source§

fn clone(&self) -> InterceptorLayer<F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<F: Debug> Debug for InterceptorLayer<F>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<S, F> Layer<S> for InterceptorLayer<F>
where F: Interceptor + Clone,

§

type Service = InterceptedService<S, F>

The wrapped service
source§

fn layer(&self, service: S) -> Self::Service

Wrap the given service with the middleware, returning a new service that has been decorated with the middleware.
source§

impl<F: Copy> Copy for InterceptorLayer<F>