[][src]Struct grpcio::Client

pub struct Client { /* fields omitted */ }

A generic client for making RPC calls.

Methods

impl Client
[src]

Initialize a new Client.

Create a synchronized unary RPC call.

Create an asynchronized unary RPC call.

Create an asynchronized client streaming call.

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

Create an 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.

Trait Implementations

impl Clone for Client
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Client

impl Sync for Client

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]