载入中...
搜索中...
未找到
CrowdSnapshot.cpp
浏览该文件的文档.
14 Diagnostic::error(DiagnosticCode::Conflict, "Cannot capture during Crowd advancement", "snapshot"));
29 Diagnostic::error(DiagnosticCode::Conflict, "Invalid snapshot or active Crowd step", "snapshot"));
52 return Result<RestorePlan>::failure(Diagnostic::error(DiagnosticCode::Failed, error.what(), "snapshot"));
58 Diagnostic::error(DiagnosticCode::Conflict, "Empty, foreign or stale Crowd restore plan", "snapshot"));
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
static Status success(StatusCode code=StatusCode::Ok)
Construct a successful status with an explicit non-error outcome.
Definition Status.cpp:19
Prepared restore workspace; owns allocations until commit or destruction.
Definition Crowd.h:391
Immutable in-process checkpoint; not a persistent or cross-process format.
Definition Crowd.h:386
Result< RestorePlan > prepareRestore(const Snapshot &snapshot) const
Allocate complete restored state and fresh handle ownership before publication.
Definition CrowdSnapshot.cpp:26
Result< void > commitRestore(RestorePlan &&plan)
Publish a prepared restore without allocation; consumes plan on success.
Definition CrowdSnapshot.cpp:55
Definition Crowd.cpp:14
@ Failed
@ Conflict
@ Applied