Home
last modified time | relevance | path

Searched refs:InterceptedService (Results 1 – 9 of 9) sorted by relevance

/tonic/tonic/src/service/
H A Dinterceptor.rs76 type Service = InterceptedService<S, I>;
79 InterceptedService::new(service, self.interceptor.clone()) in layer()
87 pub struct InterceptedService<S, I> { struct
92 impl<S, I> InterceptedService<S, I> { implementation
103 impl<S, I> fmt::Debug for InterceptedService<S, I> implementation
115 impl<S, I, ReqBody, ResBody> Service<http::Request<ReqBody>> for InterceptedService<S, I> implementation
157 impl<S, I> crate::server::NamedService for InterceptedService<S, I> implementation
288 let svc = InterceptedService::new(svc, |request: crate::Request<()>| { in doesnt_remove_headers_from_requests()
317 let svc = InterceptedService::new(svc, |_: crate::Request<()>| { in handles_intercepted_status_as_response()
337 let svc = InterceptedService::new(svc, Ok); in doesnt_change_http_method()
/tonic/examples/src/interceptor/
H A Dclient.rs4 codegen::InterceptedService,
57 let client: GreeterClient<InterceptedService<Channel, MyInterceptor>> = in using_named_interceptor()
72 InterceptedService<Channel, fn(tonic::Request<()>) -> Result<tonic::Request<()>, Status>>, in using_function_pointer_interceptro()
/tonic/tests/integration_tests/tests/
H A Dextensions.rs85 let svc = InterceptedService { in setting_extension_from_tower()
121 struct InterceptedService<S> { struct
125 impl<S> Service<http::Request<Body>> for InterceptedService<S> argument
155 impl<S: NamedService> NamedService for InterceptedService<S> { implementation
/tonic/tonic/src/
H A Dcodegen.rs14 pub use crate::service::interceptor::InterceptedService;
/tonic/tonic-health/src/generated/
H A Dgrpc_health_v1.rs91 ) -> HealthClient<InterceptedService<T, F>> in with_interceptor()
105 HealthClient::new(InterceptedService::new(inner, interceptor)) in with_interceptor()
277 ) -> InterceptedService<Self, F> in with_interceptor()
281 InterceptedService::new(Self::new(inner), interceptor) in with_interceptor()
/tonic/tonic-reflection/src/generated/
H A Dgrpc_reflection_v1.rs180 ) -> ServerReflectionClient<InterceptedService<T, F>> in with_interceptor()
194 ServerReflectionClient::new(InterceptedService::new(inner, interceptor)) in with_interceptor()
318 ) -> InterceptedService<Self, F> in with_interceptor()
322 InterceptedService::new(Self::new(inner), interceptor) in with_interceptor()
H A Dgrpc_reflection_v1alpha.rs180 ) -> ServerReflectionClient<InterceptedService<T, F>> in with_interceptor()
194 ServerReflectionClient::new(InterceptedService::new(inner, interceptor)) in with_interceptor()
318 ) -> InterceptedService<Self, F> in with_interceptor()
322 InterceptedService::new(Self::new(inner), interceptor) in with_interceptor()
/tonic/tonic-build/src/
H A Dclient.rs85 … pub fn with_interceptor<F>(inner: T, interceptor: F) -> #service_ident<InterceptedService<T, F>> in generate_internal()
95 #service_ident::new(InterceptedService::new(inner, interceptor)) in generate_internal()
H A Dserver.rs137 pub fn with_interceptor<F>(inner: T, interceptor: F) -> InterceptedService<Self, F> in generate_internal()
141 InterceptedService::new(Self::new(inner), interceptor) in generate_internal()