载入中...
搜索中...
未找到
ProtocolDispatch.h
浏览该文件的文档.
1#pragma once
2
9#include "common/Result.h"
10
11#include <string_view>
12
13namespace eve {
14
22
29
31template <>
35 static constexpr std::string_view name(ProtocolDispatch value) noexcept {
36 switch (value) {
37 case ProtocolDispatch::ReplySent: return "reply_sent";
38 case ProtocolDispatch::NotificationHandled: return "notification_handled";
39 case ProtocolDispatch::Rejected: return "rejected";
40 case ProtocolDispatch::Terminate: return "terminate";
41 }
42 return "unknown";
43 }
44
49};
50
51} // namespace eve
double value
Compile-time contract for stable names and codes of domain values.
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16
DiagnosticCode
Stable machine-readable diagnostic codes.
Definition Diagnostic.h:47
ProtocolDispatch
Observable disposition of one protocol input message.
static constexpr DiagnosticCode code(ProtocolDispatch value) noexcept
Code.
static constexpr std::string_view name(ProtocolDispatch value) noexcept
Name.
Customization point for values that cross diagnostic boundaries.