userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
qos.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <chrono>
7
#include <optional>
8
9
#include <
userver/formats/json_fwd.hpp
>
10
11
USERVER_NAMESPACE_BEGIN
12
13
namespace
ugrpc::client
{
14
18
struct
Qos
final {
24
std::optional<int>
attempts
;
25
37
std::optional<std::chrono::milliseconds>
timeout
;
38
};
39
40
bool
operator==(
const
Qos
& lhs,
const
Qos
& rhs)
noexcept
;
41
42
Qos
Parse(
const
formats::json::Value
& value,
formats::parse::To<Qos>
);
43
44
formats::json::Value
Serialize(
const
Qos
& qos,
formats::serialize::To<formats::json::Value>
);
45
46
}
// namespace ugrpc::client
47
48
USERVER_NAMESPACE_END
userver
ugrpc
client
qos.hpp
Generated on
for userver by
Doxygen
1.17.0