Options for individual RPC calls.
More...
#include <client.h>
|
| template<typename Duration > |
| void | set_timeout (Duration timeout) |
| | Set deadline from timeout duration.
|
| |
Options for individual RPC calls.
Definition at line 78 of file client.h.
◆ set_timeout()
template<typename Duration >
| void kcenon::network::protocols::grpc::call_options::set_timeout |
( |
Duration | timeout | ) |
|
|
inline |
Set deadline from timeout duration.
- Parameters
-
Definition at line 97 of file client.h.
98 {
99 deadline = std::chrono::system_clock::now() +
100 std::chrono::duration_cast<std::chrono::system_clock::duration>(timeout);
101 }
std::optional< std::chrono::system_clock::time_point > deadline
Deadline for this call.
References deadline.
◆ compression_algorithm
| std::string kcenon::network::protocols::grpc::call_options::compression_algorithm |
Compression algorithm to use.
Definition at line 90 of file client.h.
◆ deadline
| std::optional<std::chrono::system_clock::time_point> kcenon::network::protocols::grpc::call_options::deadline |
◆ metadata
| grpc_metadata kcenon::network::protocols::grpc::call_options::metadata |
Metadata to send with the request.
Definition at line 84 of file client.h.
◆ wait_for_ready
| bool kcenon::network::protocols::grpc::call_options::wait_for_ready = false |
Whether to wait for the server to be ready.
Definition at line 87 of file client.h.
The documentation for this struct was generated from the following file:
- include/kcenon/network/detail/protocols/grpc/client.h