userver
C++ Async Framework
Loading...
Searching...
No Matches
status_codes.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/ugrpc/status_codes.hpp
4
/// @brief Utilities for grpc::StatusCode
5
6
#
include
<
grpcpp
/
support
/
status
.
h
>
7
8
USERVER_NAMESPACE_BEGIN
9
10
namespace
ugrpc {
11
12
/// @brief Convert string to grpc::StatusCode
13
/// @throws std::runtime_error
14
grpc::StatusCode
StatusCodeFromString
(std::string_view str);
15
16
/// @brief Convert grpc::StatusCode to string
17
std
::
string_view
ToString
(
grpc
::
StatusCode
code
)
noexcept
;
18
19
}
// namespace ugrpc
20
21
USERVER_NAMESPACE_END
userver
ugrpc
status_codes.hpp
Generated on Wed May 15 2024 22:26:40 for userver by
Doxygen
1.10.0