PYTHONPUBLIC API

fastsim.api.snapshots

fastsim.api.snapshots 的当前公共 Python API;签名从 vNext AST 直接提取。

源码 src/fastsim/api/snapshots.py

公开符号 4

class

ApplicationSnapshotError

L20
class ApplicationSnapshotError(ValueError)

An application snapshot contains non-portable or inconsistent data.

class

ApplicationState

L24
class ApplicationState(StrEnum)

Stable externally observable state of one FastSim Run.

class

ApplicationFailureRecord

L38
class ApplicationFailureRecord(object)

Bounded failure facts that never retain the originating exception.

字段类型默认值
operationstr
error_typestr
messagestr
fatalbool
from_exception
ApplicationFailureRecord.from_exception(cls, error: BaseException, *, operation: str, fatal: bool) -> ApplicationFailureRecord

Lower an arbitrary, possibly hostile exception to exact builtins.

class

ApplicationSnapshot

L76
class ApplicationSnapshot(object)

Cross-thread-readable public state for exactly one compiled Run.

字段类型默认值
run_idstr
plan_digeststr
stateApplicationState
runtimeRuntimeSnapshot
pluginsPluginHostSnapshot | None
failurestuple[ApplicationFailureRecord, ...]
application_thread_idint