Expand description
TransientSnapshot — the runtime ephemeral state surfaced for
Node::snapshot / Node::restore.
Stable framework state (counters, lifecycle phases, address book,
peer governor, backoff table) round-trips today via the populated
framework + bus fields. The remaining fields (frontier,
slot_table, pending_async, execution_state, ingress,
wire_states, pending_completions) exist on the struct so the
shape matches the future in-flight execution snapshot but are not
yet populated by Node::snapshot; restored Nodes start from a
fresh frontier.
Structs§
- Address
Book Entry Snapshot - One peer’s
AddressBookentry: ordered list ofAddressbyte vectors + reference count. Preserves the multi-address + ref-counted shape across snapshot/restore. - Backoff
Entry - Serializable view of one peer’s
BackoffState. - Execution
State Snapshot - Serializable view of
ExecutionState. - Framework
Snapshot - Serializable view of
FrameworkComponentsper ENGINE.md §16. Captures counters, queued lifecycle phases, the multiaddr-keyed peer registries perdocs/ADDRESSING.md, plus thePeerGovernor+BackoffTablepolicy/health state introduced in - so a restored Node remembers blocklisted peers, allowlist policy, and in-flight backoff cooldowns across restarts (no thundering herd on cold start). - Peer
Governor Snapshot - Serializable view of
PeerGovernor. - Pending
Async Snapshot - Serializable view of
PendingAsync. - Pending
Completion Snapshot - Serializable view of
PendingCompletionper ENGINE.md §10.2. The opaqueresultspayload is serialized via the same wire path as ordinary slot values - SlotValue implementors carry proto-mirroring; non-tensorWireValues round-trip as raw bytes here. - Pending
Outbound Entry - One outbound envelope that hadn’t been shipped yet when the
snapshot was taken. The
redeliveredflag tells the transport adapter “I’ve seen this before, decide whether to ship again.” - Transient
Snapshot - Runtime ephemeral state per ENGINE.md §15.1.
- Typed
BusSnapshot - Serializable view of
TypedBusper ENGINE.md §16. Captures the subscription table -(event_kind → Vec<NodeSiteId.0>)matching the multiaddr-routed delivery model indocs/ADDRESSING.md.
Enums§
- Ingress
Event Snapshot - Serializable view of
IngressEvent. Only the variants that can realistically survive a snapshot boundary are recorded; Waker / Control variants are dropped on snapshot.
Constants§
- CURRENT_
SNAPSHOT_ SPEC_ VERSION - Current snapshot spec version this build can soundly restore.
Bumped when the
FrameworkSnapshotshape changes in a way older code cannot replay (e.g. field-encoding change, removed invariant). Restore rejects snapshots stamped with any other version.