[][src]Struct client::pb::server::test_service::methods::UnaryCall

pub struct UnaryCall<T>(pub T);

Trait Implementations

impl<T> Service<Request<SimpleRequest>> for UnaryCall<T> where
    T: TestService
[src]

type Response = Response<SimpleResponse>

Responses given by the service.

type Error = Status

Errors produced by the service.

type Future = T::UnaryCallFuture

The future response value.

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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]

impl<T, Request> ServiceExt<Request> for T where
    T: Service<Request> + ?Sized
[src]

fn ready(self) -> Ready<Self, Request>[src]

A future yielding the service when it is ready to accept a request.

fn oneshot(self, req: Request) -> Oneshot<Self, Request>[src]

Consume this Service, calling with the providing request once it is ready.

fn call_all<S>(self, reqs: S) -> CallAll<Self, S> where
    S: Stream<Item = Request>,
    Self::Error: Into<Box<dyn Error + 'static + Send + Sync>>,
    <S as Stream>::Error: Into<Box<dyn Error + 'static + Send + Sync>>, 
[src]

Process all requests from the given Stream, and produce a Stream of their responses. Read more

impl<T, M1, M2> UnaryService<M1> for T where
    T: Service<Request<M1>, Response = Response<M2>, Error = Status>, 
[src]

type Response = M2

Protobuf response message type

type Future = <T as Service<Request<M1>>>::Future

Response future