pub struct Client { /* fields omitted */ }
A generic client for making RPC calls.
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.
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static