proto-struct stream response future.
Definition at line 15 of file stream_read_future.hpp.
Public Types | |
using | ProtobufResponse = proto_structs::traits::CompatibleMessageType<StructsResponse> |
using | ProtobufStreamFuture = ugrpc::client::StreamReadFuture<ProtobufResponse> |
Public Member Functions | |
StreamReadFuture (ProtobufStreamFuture &&future, ProtobufResponse &response) | |
std::optional< StructsResponse > | Get () |
Await response. | |
bool | IsReady () const noexcept |
Checks if the asynchronous call has completed Note, that once user gets result, IsReady should not be called. | |
using grpc_proto_structs::client::StreamReadFuture< StructsResponse >::ProtobufResponse = proto_structs::traits::CompatibleMessageType<StructsResponse> |
Definition at line 17 of file stream_read_future.hpp.
using grpc_proto_structs::client::StreamReadFuture< StructsResponse >::ProtobufStreamFuture = ugrpc::client::StreamReadFuture<ProtobufResponse> |
Definition at line 18 of file stream_read_future.hpp.
|
inlineexplicit |
Definition at line 20 of file stream_read_future.hpp.
|
inline |
Await response.
Upon completion the result is available in response
that was specified when initiating the asynchronous read
Get
should not be called multiple times for the same StreamReadFuture.
ugrpc::client::RpcError | on an RPC error |
ugrpc::client::RpcCancelledError | on task cancellation |
Definition at line 32 of file stream_read_future.hpp.
|
inlinenodiscardnoexcept |
Checks if the asynchronous call has completed Note, that once user gets result, IsReady should not be called.
Definition at line 44 of file stream_read_future.hpp.