载入中...
搜索中...
未找到
PreviewState.h
浏览该文件的文档.
1#pragma once
2
3#include <cstdint>
4
5namespace eve::editor {
12 std::uint64_t request = 0;
13 std::uint64_t providerGeneration = 1;
14};
15
19inline const char* previewPhaseName(PreviewPhase phase) noexcept {
20 switch (phase) {
21 case PreviewPhase::Idle: return "idle";
22 case PreviewPhase::Pending: return "pending";
23 case PreviewPhase::Ready: return "ready";
24 case PreviewPhase::Failed: return "failed";
25 case PreviewPhase::Cancelled: return "cancelled";
26 case PreviewPhase::Unavailable: return "unavailable";
27 case PreviewPhase::Closed: return "closed";
28 }
29 return "failed";
30}
31} // namespace eve::editor
float phase
const char * previewPhaseName(PreviewPhase phase) noexcept
Stable UI label for lifecycle observations (not a persisted format). @ownership Borrowed static strin...
PreviewPhase
Owner-thread observation; request and provider generation are local monotonic epochs,...
Definition PreviewState.h:8
@ Pending
A transaction is open and has not yet had a commit attempt fail.
Owning preview lifecycle observation; payloads remain owned by the domain.
std::uint64_t providerGeneration