[][src]Struct service::WorldClient

pub struct WorldClient<C = Channel<WorldRequest, WorldResponse>>(_);

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

Implementations

impl WorldClient[src]

pub fn new<T>(
    config: Config,
    transport: T
) -> NewClient<Self, RequestDispatch<WorldRequest, WorldResponse, T>> where
    T: Transport<ClientMessage<WorldRequest>, Response<WorldResponse>>, 
[src]

Returns a new client stub that sends requests over the given transport.

impl<C> WorldClient<C> where
    C: Client<'a, WorldRequest, Response = WorldResponse>, 
[src]

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

Returns a greeting for name.

Trait Implementations

impl<C: Clone> Clone for WorldClient<C>[src]

impl<C: Debug> Debug for WorldClient<C>[src]

impl<C> From<C> for WorldClient<C> where
    C: Client<'a, WorldRequest, Response = WorldResponse>, 
[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for WorldClient<C> where
    C: RefUnwindSafe
[src]

impl<C> Send for WorldClient<C> where
    C: Send
[src]

impl<C> Sync for WorldClient<C> where
    C: Sync
[src]

impl<C> Unpin for WorldClient<C> where
    C: Unpin
[src]

impl<C> UnwindSafe for WorldClient<C> where
    C: UnwindSafe
[src]

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,