proto-struct response future.
Definition at line 16 of file response_future.hpp.
Public Types | |
| using | VanillaResponse = proto_structs::traits::CompatibleMessageType<Response> |
| using | VanillaFuture = ugrpc::client::ResponseFuture<VanillaResponse> |
Public Member Functions | |
| ResponseFuture (VanillaFuture &&future) | |
| bool | IsReady () const |
| Checks if the asynchronous call has completed. Note, that once user gets result, IsReady should not be called. | |
| engine::FutureStatus | WaitUntil (engine::Deadline deadline) const noexcept |
| Await response until specified timepoint. | |
| Response | Get () |
| Await and read the response. | |
| void | Cancel () |
| Cancel call. | |
| ugrpc::client::CallContext & | GetContext () |
| Get call context, useful e.g. for accessing metadata. | |
| const ugrpc::client::CallContext & | GetContext () const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| using grpc_proto_structs::client::ResponseFuture< Response >::VanillaFuture = ugrpc::client::ResponseFuture<VanillaResponse> |
Definition at line 19 of file response_future.hpp.
| using grpc_proto_structs::client::ResponseFuture< Response >::VanillaResponse = proto_structs::traits::CompatibleMessageType<Response> |
Definition at line 18 of file response_future.hpp.
|
inlineexplicit |
Definition at line 21 of file response_future.hpp.
|
inline |
Cancel call.
Definition at line 50 of file response_future.hpp.
|
inline |
Await and read the response.
Get should not be called multiple times for the same UnaryFuture.
The connection is not closed, it will be reused for new RPCs.
| ugrpc::client::RpcError | on an RPC error. |
| ugrpc::client::RpcCancelledError | on task cancellation. |
Definition at line 44 of file response_future.hpp.
|
inline |
Get call context, useful e.g. for accessing metadata.
Definition at line 53 of file response_future.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 56 of file response_future.hpp.
|
inlinenodiscard |
Checks if the asynchronous call has completed. Note, that once user gets result, IsReady should not be called.
Definition at line 26 of file response_future.hpp.
|
inlinenodiscardnoexcept |
Await response until specified timepoint.
| ugrpc::client::RpcError | on an RPC error. |
Definition at line 31 of file response_future.hpp.