[−][src]Struct service::WorldClient
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]
config: Config,
transport: T
) -> NewClient<Self, RequestDispatch<WorldRequest, WorldResponse, T>> where
T: Transport<ClientMessage<WorldRequest>, Response<WorldResponse>>,
Returns a new client stub that sends requests over the given transport.
impl<C> WorldClient<C> where
C: Client<'a, WorldRequest, Response = WorldResponse>,
[src]
C: Client<'a, WorldRequest, Response = WorldResponse>,
pub fn hello(
&mut self,
ctx: Context,
name: String
) -> impl Future<Output = Result<String>> + '_
[src]
&mut self,
ctx: Context,
name: String
) -> impl Future<Output = Result<String>> + '_
Returns a greeting for name.
Trait Implementations
impl<C: Clone> Clone for WorldClient<C>
[src]
pub fn clone(&self) -> WorldClient<C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Debug> Debug for WorldClient<C>
[src]
impl<C> From<C> for WorldClient<C> where
C: Client<'a, WorldRequest, Response = WorldResponse>,
[src]
C: Client<'a, WorldRequest, Response = WorldResponse>,
Auto Trait Implementations
impl<C> RefUnwindSafe for WorldClient<C> where
C: RefUnwindSafe,
[src]
C: RefUnwindSafe,
impl<C> Send for WorldClient<C> where
C: Send,
[src]
C: Send,
impl<C> Sync for WorldClient<C> where
C: Sync,
[src]
C: Sync,
impl<C> Unpin for WorldClient<C> where
C: Unpin,
[src]
C: Unpin,
impl<C> UnwindSafe for WorldClient<C> where
C: UnwindSafe,
[src]
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,