#include </data/code/userver/libraries/grpc-proto-structs/include/userver/grpc-proto-structs/server/stream.hpp>
proto-struct based Reader adapter
This class is not thread-safe.
If any method throws, further methods must not be called on the same stream.
Definition at line 22 of file stream.hpp.
Public Types | |
using | RequestMessage = proto_structs::traits::CompatibleMessageType<Request> |
using | ProtobufMessageReader = ugrpc::server::Reader<RequestMessage> |
Public Member Functions | |
Reader (ProtobufMessageReader &reader) | |
bool | Read (Request &request) |
Await and read the next incoming message. | |
using grpc_proto_structs::server::Reader< Request >::ProtobufMessageReader = ugrpc::server::Reader<RequestMessage> |
Definition at line 25 of file stream.hpp.
using grpc_proto_structs::server::Reader< Request >::RequestMessage = proto_structs::traits::CompatibleMessageType<Request> |
Definition at line 24 of file stream.hpp.
|
inlineexplicit |
Definition at line 27 of file stream.hpp.
|
inline |
Await and read the next incoming message.
Read protobuf message corresponding to Request
with ugrpc::server::Reader::Read and construct Request
from it.
Definition at line 35 of file stream.hpp.