[][src]Struct tower_grpc::generic::client::IntoService

pub struct IntoService<T>(_);

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]

type Response = Response<T::ResponseBody>

Responses given by the service.

type Future = T::Future

The future response value.

type Error = T::Error

Errors produced by the service.

Auto Trait Implementations

impl<T> Send for IntoService<T> where
    T: Send

impl<T> Unpin for IntoService<T> where
    T: Unpin

impl<T> Sync for IntoService<T> where
    T: Sync

impl<T> UnwindSafe for IntoService<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for IntoService<T> where
    T: RefUnwindSafe

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]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]