Struct service::WorldClient
source · pub struct WorldClient(_);
Expand description
The client stub that makes RPC calls to the server. All request methods return Futures.
Implementations§
source§impl WorldClient
impl WorldClient
sourcepub fn new<T>(
config: Config,
transport: T
) -> NewClient<Self, RequestDispatch<WorldRequest, WorldResponse, T>>where
T: Transport<ClientMessage<WorldRequest>, Response<WorldResponse>>,
pub fn new<T>( 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.
Trait Implementations§
source§impl Clone for WorldClient
impl Clone for WorldClient
source§fn clone(&self) -> WorldClient
fn clone(&self) -> WorldClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more