#include <userver/ugrpc/server/stream.hpp>
Interface to write server's responses.
This class is not thread-safe
If any method throws, further methods must not be called on the same stream.
Definition at line 35 of file stream.hpp.
Public Member Functions | |
virtual void | Write (Response &response)=0 |
Write the next outgoing message. | |
virtual void | Write (Response &&response)=0 |
Write the next outgoing message. | |
|
pure virtual |
Write the next outgoing message.
response | the next message to write |
ugrpc::server::RpcError | on an RPC error |
Implemented in ugrpc::server::OutputStream< Response >, and ugrpc::server::BidirectionalStream< Request, Response >.
|
pure virtual |
Write the next outgoing message.
response | the next message to write |
ugrpc::server::RpcError | on an RPC error |
Implemented in ugrpc::server::OutputStream< Response >, and ugrpc::server::BidirectionalStream< Request, Response >.