Struct grpcio::Client[][src]

pub struct Client { /* fields omitted */ }

A generic client for making rpc calls.

Methods

impl Client
[src]

Create a synchronized unary rpc call.

Create a asynchronized unary rpc call.

Create a asynchronized client streaming call.

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

Create a asynchronized server streaming call.

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

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.

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.

Auto Trait Implementations

impl Send for Client

impl Sync for Client