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