pub struct GrpcService<T> { /* private fields */ }Trait Implementations§
Source§impl<T, F> Service<Io<F>> for GrpcService<T>where
F: Filter,
T: ServiceFactory<ServerRequest, SharedCfg, Response = ServerResponse, Error = ServerError> + 'static,
impl<T, F> Service<Io<F>> for GrpcService<T>where
F: Filter,
T: ServiceFactory<ServerRequest, SharedCfg, Response = ServerResponse, Error = ServerError> + 'static,
Source§type Error = <T as ServiceFactory<ServerRequest, SharedCfg>>::InitError
type Error = <T as ServiceFactory<ServerRequest, SharedCfg>>::InitError
Errors produced by the service when polling readiness or executing call.
Source§async fn call(
&self,
io: Io<F>,
_: ServiceCtx<'_, Self>,
) -> Result<(), Self::Error>
async fn call( &self, io: Io<F>, _: ServiceCtx<'_, Self>, ) -> Result<(), Self::Error>
Processes a request and returns the response asynchronously. Read more
Source§async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is ready to process requests. Read more
Source§fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
Polls the service from the current async task. Read more
Source§impl<T> Service<IoBoxed> for GrpcService<T>where
T: ServiceFactory<ServerRequest, SharedCfg, Response = ServerResponse, Error = ServerError> + 'static,
impl<T> Service<IoBoxed> for GrpcService<T>where
T: ServiceFactory<ServerRequest, SharedCfg, Response = ServerResponse, Error = ServerError> + 'static,
Source§type Error = <T as ServiceFactory<ServerRequest, SharedCfg>>::InitError
type Error = <T as ServiceFactory<ServerRequest, SharedCfg>>::InitError
Errors produced by the service when polling readiness or executing call.
Source§async fn call(
&self,
io: IoBoxed,
_: ServiceCtx<'_, Self>,
) -> Result<(), Self::Error>
async fn call( &self, io: IoBoxed, _: ServiceCtx<'_, Self>, ) -> Result<(), Self::Error>
Processes a request and returns the response asynchronously. Read more
Source§async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is ready to process requests. Read more
Source§fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
Polls the service from the current async task. Read more
Auto Trait Implementations§
impl<T> Freeze for GrpcService<T>
impl<T> !RefUnwindSafe for GrpcService<T>
impl<T> !Send for GrpcService<T>
impl<T> !Sync for GrpcService<T>
impl<T> Unpin for GrpcService<T>
impl<T> UnsafeUnpin for GrpcService<T>
impl<T> !UnwindSafe for GrpcService<T>
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<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
Source§fn into_service(self) -> Svc
fn into_service(self) -> Svc
Convert to a
Service