Struct googapis::google::example::showcase::v1beta1::echo_client::EchoClient[][src]

pub struct EchoClient<T> { /* fields omitted */ }
Expand description

This service is used showcase the four main types of rpcs - unary, server side streaming, client side streaming, and bidirectional streaming. This service also exposes methods that explicitly implement server delay, and paginated calls. Set the ‘showcase-trailer’ metadata key on any method to have the values echoed in the response trailers.

Implementations

Compress requests with gzip.

This requires the server to support it otherwise it might respond with an error.

Enable decompressing responses with gzip.

This method simply echoes the request. This method showcases unary RPCs.

This method splits the given content into words and will pass each word back through the stream. This method showcases server-side streaming RPCs.

This method will collect the words given to it. When the stream is closed by the client, this method will return the a concatenation of the strings passed to it. This method showcases client-side streaming RPCs.

This method, upon receiving a request on the stream, will pass the same content back on the stream. This method showcases bidirectional streaming RPCs.

This is similar to the Expand method but instead of returning a stream of expanded words, this method returns a paged list of expanded words.

This method will wait for the requested amount of time and then return. This method showcases how a client handles a request timeout.

This method will block (wait) for the requested amount of time and then return the response or error. This method showcases how a client handles delays or retries.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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