[]Struct service::Client

pub struct Client<C = Channel<Request, Response>>(_);

The client stub that makes RPC calls to the server. Exposes a Future interface.

Methods

impl<C> Client<C> where
    C: Client<'a, Request, Response = Response>, 

pub fn hello(
    &mut self,
    ctx: Context,
    name: String
) -> impl Future<Output = Result<String>> + '_

Returns a greeting for name.

Trait Implementations

impl<C: Clone> Clone for Client<C>

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<C> From<C> for Client<C> where
    C: Client<'a, Request, Response = Response>, 

impl<C: Debug> Debug for Client<C>

Auto Trait Implementations

impl<C> Send for Client<C> where
    C: Send

impl<C> Sync for Client<C> where
    C: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto 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> Borrow for T where
    T: ?Sized
[src]

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

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