Struct service::WorldClient [−][src]
pub struct WorldClient(_);
Expand description
The client stub that makes RPC calls to the server. All request methods return Futures.
Implementations
pub 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
Auto Trait Implementations
impl !RefUnwindSafe for WorldClient
impl Send for WorldClient
impl Sync for WorldClient
impl Unpin for WorldClient
impl !UnwindSafe for WorldClient
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more