#include </data/code/userver/libraries/grpc-proto-structs/include/userver/grpc-proto-structs/client/stream.hpp>
proto-struct based Reader adapter.
Definition at line 18 of file stream.hpp.
Public Types | |
using | ProtobufResponse = proto_structs::traits::CompatibleMessageType<StructsResponse> |
using | ProtobufReader = ugrpc::client::Reader<ProtobufResponse> |
Public Member Functions | |
Reader (ProtobufReader &&reader) | |
Reader (Reader &&)=default | |
Reader & | operator= (Reader &&)=default |
std::optional< StructsResponse > | Read () |
Await and read the next incoming message. | |
ugrpc::client::CallContext & | GetContext () |
Get call context, useful e.g. for accessing metadata. | |
const ugrpc::client::CallContext & | GetContext () const |
using grpc_proto_structs::client::Reader< StructsResponse >::ProtobufReader = ugrpc::client::Reader<ProtobufResponse> |
Definition at line 21 of file stream.hpp.
using grpc_proto_structs::client::Reader< StructsResponse >::ProtobufResponse = proto_structs::traits::CompatibleMessageType<StructsResponse> |
Definition at line 20 of file stream.hpp.
|
inlineexplicit |
Definition at line 23 of file stream.hpp.
|
inline |
Get call context, useful e.g. for accessing metadata.
Definition at line 46 of file stream.hpp.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 51 of file stream.hpp.
|
inlinenodiscard |
Await and read the next incoming message.
Read protobuf message corresponding to Response with ugrpc::client::Reader::Read and construct response from it.
Definition at line 32 of file stream.hpp.