15class StreamReadFuture final {
17 using ProtobufResponse = proto_structs::traits::CompatibleMessageType<StructsResponse>;
18 using ProtobufStreamFuture = ugrpc::client::StreamReadFuture<ProtobufResponse>;
20 StreamReadFuture(ProtobufStreamFuture&& future, ProtobufResponse& response)
21 : future_{std::move(future)},
28 [[nodiscard]]
bool IsReady()
const noexcept {
return future_.IsReady(); }
41 StructsResponse response;
42 proto_structs::MessageToStruct(response_, response);
49 ProtobufStreamFuture future_;
50 ProtobufResponse& response_;