Struct grpcio::Client [] [src]

pub struct Client { /* fields omitted */ }

A generic client for making rpc calls.

Methods

impl Client
[src]

[src]

[src]

Create a synchronized unary rpc call.

[src]

Create a asynchronized unary rpc call.

[src]

Create a asynchronized client streaming call.

Client can send a stream of requests and server responds with a single response.

[src]

Create a asynchronized server streaming call.

Client sends on request and server responds with a stream of responses.

[src]

Create an asynchronized duplex streaming call.

Client sends a stream of requests and server responds with a stream of responses. The response stream is completely independent and both side can be sending messages at the same time.

[src]

Spawn the future into current grpc poll thread.

This can reduce a lot of context switching, but please make sure there is no heavy work in the future.