#include <userver/ugrpc/server/stream.hpp>
Interface to both read and write messages.
If any method throws, further methods must not be called on the same stream.
This class allows the following concurrent calls:
Read;Writeand there can only be one Read and one Write in flight at a time.
If any method throws, further methods must not be called on the same stream.
Definition at line 83 of file stream.hpp.
Inheritance diagram for ugrpc::server::ReaderWriter< Request, Response >:Public Member Functions | |
| virtual bool | Read (Request &request)=0 |
| Await and read the next incoming message. | |
| virtual void | Write (Response &response)=0 |
| Write the next outgoing message. | |
| virtual void | Write (Response &response, const grpc::WriteOptions &options)=0 |
| Write the next outgoing message. | |
| virtual void | Write (Response &&response)=0 |
| Write the next outgoing message. | |
| virtual void | Write (Response &&response, const grpc::WriteOptions &options)=0 |
| Write the next outgoing message. | |
|
nodiscardpure virtualinherited |
Await and read the next incoming message.
| request | where to put the request on success |
true on success, false on end-of-input | ugrpc::server::RpcError | on an RPC error |
|
pure virtualinherited |
Write the next outgoing message.
| response | the next message to write |
| ugrpc::server::RpcError | on an RPC error |
| std::exception | (internal) on error from middlewares |
|
pure virtualinherited |
Write the next outgoing message.
| response | the next message to write |
| options | the write options |
| ugrpc::server::RpcError | on an RPC error |
| std::exception | (internal) on error from middlewares |
|
pure virtualinherited |
Write the next outgoing message.
| response | the next message to write |
| ugrpc::server::RpcError | on an RPC error |
| std::exception | (internal) on error from middlewares |
|
pure virtualinherited |
Write the next outgoing message.
| response | the next message to write |
| options | the write options |
| ugrpc::server::RpcError | on an RPC error |
| std::exception | (internal) on error from middlewares |