Struct tonic_web::GrpcWebService
source · pub struct GrpcWebService<S> { /* private fields */ }Expand description
Service implementing the grpc-web protocol.
Trait Implementations§
source§impl<S: Clone> Clone for GrpcWebService<S>
impl<S: Clone> Clone for GrpcWebService<S>
source§fn clone(&self) -> GrpcWebService<S>
fn clone(&self) -> GrpcWebService<S>
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<S: Debug> Debug for GrpcWebService<S>
impl<S: Debug> Debug for GrpcWebService<S>
source§impl<S: NamedService> NamedService for GrpcWebService<S>
impl<S: NamedService> NamedService for GrpcWebService<S>
source§impl<S> Service<Request<Body>> for GrpcWebService<S>where
S: Service<Request<Body>, Response = Response<BoxBody>> + Send + 'static,
S::Future: Send + 'static,
S::Error: Into<Box<dyn Error + Send + Sync>> + Send,
impl<S> Service<Request<Body>> for GrpcWebService<S>where S: Service<Request<Body>, Response = Response<BoxBody>> + Send + 'static, S::Future: Send + 'static, S::Error: Into<Box<dyn Error + Send + Sync>> + Send,
Auto Trait Implementations§
impl<S> RefUnwindSafe for GrpcWebService<S>where S: RefUnwindSafe,
impl<S> Send for GrpcWebService<S>where S: Send,
impl<S> Sync for GrpcWebService<S>where S: Sync,
impl<S> Unpin for GrpcWebService<S>where S: Unpin,
impl<S> UnwindSafe for GrpcWebService<S>where S: UnwindSafe,
Blanket Implementations§
source§impl<T, ReqBody, ResBody> GrpcService<ReqBody> for Twhere
T: Service<Request<ReqBody>, Response = Response<ResBody>>,
<T as Service<Request<ReqBody>>>::Error: Into<Box<dyn Error + Send + Sync + 'static, Global>>,
ResBody: Body,
<ResBody as Body>::Error: Into<Box<dyn Error + Send + Sync + 'static, Global>>,
impl<T, ReqBody, ResBody> GrpcService<ReqBody> for Twhere T: Service<Request<ReqBody>, Response = Response<ResBody>>, <T as Service<Request<ReqBody>>>::Error: Into<Box<dyn Error + Send + Sync + 'static, Global>>, ResBody: Body, <ResBody as Body>::Error: Into<Box<dyn Error + Send + Sync + 'static, Global>>,
§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