pub struct InterceptorService<I, S> { /* private fields */ }
Expand description
Service
Implementations§
Source§impl<I, S> InterceptorService<I, S>
impl<I, S> InterceptorService<I, S>
Trait Implementations§
Source§impl<ReqBody, ResBody: Default, S: Service<Request<ReqBody>, Response = Response<ResBody>>, I: Interceptor + Clone> Service<Request<ReqBody>> for InterceptorService<I, S>
impl<ReqBody, ResBody: Default, S: Service<Request<ReqBody>, Response = Response<ResBody>>, I: Interceptor + Clone> Service<Request<ReqBody>> for InterceptorService<I, S>
Auto Trait Implementations§
impl<I, S> Freeze for InterceptorService<I, S>
impl<I, S> RefUnwindSafe for InterceptorService<I, S>where
I: RefUnwindSafe,
S: RefUnwindSafe,
impl<I, S> Send for InterceptorService<I, S>
impl<I, S> Sync for InterceptorService<I, S>
impl<I, S> Unpin for InterceptorService<I, S>
impl<I, S> UnwindSafe for InterceptorService<I, S>where
I: UnwindSafe,
S: 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, ReqBody, ResBody> GrpcService<ReqBody> for T
impl<T, ReqBody, ResBody> GrpcService<ReqBody> for T
Source§type ResponseBody = ResBody
type ResponseBody = ResBody
Responses body given by the service.
Source§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <T as GrpcService<ReqBody>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <T as GrpcService<ReqBody>>::Error>>
Returns
Ready
when the service is able to process requests. Read moreSource§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