[−][src]Struct tower_grpc::generic::client::IntoService
Helper when needing to pass a GrpcService
to bounds needing Service
.
Trait Implementations
impl<T: Debug> Debug for IntoService<T>
[src]
impl<T, ReqBody> Service<Request<ReqBody>> for IntoService<T> where
T: GrpcService<ReqBody>,
[src]
T: GrpcService<ReqBody>,
Auto Trait Implementations
impl<T> Send for IntoService<T> where
T: Send,
T: Send,
impl<T> Sync for IntoService<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, ReqBody, ResBody> GrpcService<ReqBody> for T where
ResBody: Body + Body,
T: Service<Request<ReqBody>, Response = Response<ResBody>>,
<T as Service<Request<ReqBody>>>::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
[src]
ResBody: Body + Body,
T: Service<Request<ReqBody>, Response = Response<ResBody>>,
<T as Service<Request<ReqBody>>>::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
type ResponseBody = ResBody
Response body type
type Future = <T as Service<Request<ReqBody>>>::Future
Response future
type Error = <T as Service<Request<ReqBody>>>::Error
Error type
fn poll_ready(
&mut Self
) -> Result<Async<()>, <T as GrpcService<ReqBody>>::Error>
[src]
&mut Self
) -> Result<Async<()>, <T as GrpcService<ReqBody>>::Error>
fn call(&mut Self, Request<ReqBody>) -> <T as GrpcService<ReqBody>>::Future
[src]
fn into_service(self) -> IntoService<Self> where
Self: Sized,
[src]
Self: Sized,
Helper when needing to pass this type to bounds needing Service
.
fn as_service(&mut self) -> AsService<Self> where
Self: Sized,
[src]
Self: Sized,
Helper when needing to pass this type to bounds needing Service
.
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,