pub struct GrpcWebClientService<S> { /* private fields */ }
Expand description
A Service
that wraps some inner http service that will
coerce requests coming from tonic::client::Grpc
into proper
grpc-web
requests.
Implementations§
source§impl<S> GrpcWebClientService<S>
impl<S> GrpcWebClientService<S>
Trait Implementations§
source§impl<S: Clone> Clone for GrpcWebClientService<S>
impl<S: Clone> Clone for GrpcWebClientService<S>
source§fn clone(&self) -> GrpcWebClientService<S>
fn clone(&self) -> GrpcWebClientService<S>
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<S: Debug> Debug for GrpcWebClientService<S>
impl<S: Debug> Debug for GrpcWebClientService<S>
source§impl<S, B1, B2> Service<Request<B1>> for GrpcWebClientService<S>
impl<S, B1, B2> Service<Request<B1>> for GrpcWebClientService<S>
source§type Response = Response<GrpcWebCall<B2>>
type Response = Response<GrpcWebCall<B2>>
Responses given by the service.
source§type Future = ResponseFuture<<S as Service<Request<GrpcWebCall<B1>>>>::Future>
type Future = ResponseFuture<<S as Service<Request<GrpcWebCall<B1>>>>::Future>
The future response value.
Auto Trait Implementations§
impl<S> Freeze for GrpcWebClientService<S>where
S: Freeze,
impl<S> RefUnwindSafe for GrpcWebClientService<S>where
S: RefUnwindSafe,
impl<S> Send for GrpcWebClientService<S>where
S: Send,
impl<S> Sync for GrpcWebClientService<S>where
S: Sync,
impl<S> Unpin for GrpcWebClientService<S>where
S: Unpin,
impl<S> UnwindSafe for GrpcWebClientService<S>where
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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