#include </data/code/userver/libraries/grpc-proto-structs/include/userver/grpc-proto-structs/server/stream.hpp>
proto-struct based Writer adapter
This class is not thread-safe.
If any method throws, further methods must not be called on the same stream.
Definition at line 55 of file stream.hpp.
Public Types | |
using | ResponseMessage = proto_structs::traits::CompatibleMessageType<Response> |
using | ProtobufMessageWriter = ugrpc::server::Writer<ResponseMessage> |
Public Member Functions | |
Writer (ProtobufMessageWriter &writer) | |
void | Write (Response &response) |
Write the next outgoing message. | |
void | Write (Response &response, const grpc::WriteOptions &options) |
void | Write (Response &&response) |
void | Write (Response &&response, const grpc::WriteOptions &options) |
using grpc_proto_structs::server::Writer< Response >::ProtobufMessageWriter = ugrpc::server::Writer<ResponseMessage> |
Definition at line 58 of file stream.hpp.
using grpc_proto_structs::server::Writer< Response >::ResponseMessage = proto_structs::traits::CompatibleMessageType<Response> |
Definition at line 57 of file stream.hpp.
|
inlineexplicit |
Definition at line 60 of file stream.hpp.
|
inline |
Definition at line 74 of file stream.hpp.
|
inline |
Definition at line 76 of file stream.hpp.
|
inline |
Write the next outgoing message.
Convert response to corresponding protobuf message and pass it to ugrpc::server::Writer::Write.
Definition at line 68 of file stream.hpp.
|
inline |
Definition at line 70 of file stream.hpp.