Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
i_kernel_diagnostics.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "contur/core/error.h"
7
9
10namespace contur {
11
22
25 {
26 public:
28 virtual ~IKernelDiagnostics() = default;
29
32 [[nodiscard]] virtual Result<KernelDiagnosticsSnapshot> captureSnapshot() const = 0;
33 };
34
35} // namespace contur
Read-only diagnostics interface for querying kernel state.
virtual Result< KernelDiagnosticsSnapshot > captureSnapshot() const =0
Captures a diagnostics snapshot.
virtual ~IKernelDiagnostics()=default
Virtual destructor for interface-safe polymorphic cleanup.
A result type that holds either a success value of type T or an ErrorCode.
Definition error.h:104
Error codes and Result<T> type for fallible operations.
IKernel facade interface for top-level kernel operations.
Definition block.h:15
Diagnostics snapshot used by external observers.
KernelSnapshot kernel
Runtime-agnostic kernel snapshot.
Lightweight kernel state snapshot for UI and diagnostics.
Definition i_kernel.h:92