pub struct IntoService<T>(/* private fields */);Expand description
Helper when needing to pass a GrpcService to bounds needing Service.
Trait Implementations§
Source§impl<T: Debug> Debug for IntoService<T>
impl<T: Debug> Debug for IntoService<T>
Source§impl<T, ReqBody> Service<Request<ReqBody>> for IntoService<T>where
T: GrpcService<ReqBody>,
impl<T, ReqBody> Service<Request<ReqBody>> for IntoService<T>where
T: GrpcService<ReqBody>,
Source§type Response = Response<<T as GrpcService<ReqBody>>::ResponseBody>
type Response = Response<<T as GrpcService<ReqBody>>::ResponseBody>
Responses given by the service.
Source§type Future = <T as GrpcService<ReqBody>>::Future
type Future = <T as GrpcService<ReqBody>>::Future
The future response value.
Source§type Error = <T as GrpcService<ReqBody>>::Error
type Error = <T as GrpcService<ReqBody>>::Error
Errors produced by the service.
Auto Trait Implementations§
impl<T> Freeze for IntoService<T>where
T: Freeze,
impl<T> RefUnwindSafe for IntoService<T>where
T: RefUnwindSafe,
impl<T> Send for IntoService<T>where
T: Send,
impl<T> Sync for IntoService<T>where
T: Sync,
impl<T> Unpin for IntoService<T>where
T: Unpin,
impl<T> UnwindSafe for IntoService<T>where
T: 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
Response body type
Source§fn poll_ready(
&mut self,
) -> Result<Async<()>, <T as GrpcService<ReqBody>>::Error>
fn poll_ready( &mut self, ) -> Result<Async<()>, <T as GrpcService<ReqBody>>::Error>
Poll that this service is ready.
Source§fn call(
&mut self,
request: Request<ReqBody>,
) -> <T as GrpcService<ReqBody>>::Future
fn call( &mut self, request: Request<ReqBody>, ) -> <T as GrpcService<ReqBody>>::Future
Call the service.
Source§fn into_service(self) -> IntoService<Self>where
Self: Sized,
fn into_service(self) -> IntoService<Self>where
Self: Sized,
Helper when needing to pass this type to bounds needing
Service.Source§fn as_service(&mut self) -> AsService<'_, Self>where
Self: Sized,
fn as_service(&mut self) -> AsService<'_, Self>where
Self: Sized,
Helper when needing to pass this type to bounds needing
Service.