Expand description
Distributed proof tree streaming via incremental update events.
This module provides ProofTreeStreamer which emits ProofTreeUpdate
events as nodes of a crate::proof_tree::ProofTree resolve. Updates are
sent through an unbounded MPSC channel so consumers can process them
asynchronously or aggregate them into a ProofTreeStreamSummary.
§Design
- Each derivation session is identified by a
session_idstring shared across all updates. - Sequence numbers (
seq) are assigned atomically and monotonically so receivers can detect gaps or re-ordering. - A “final” update (
is_final = true) signals that the session is complete.ProofTreeStreamSummary::applysetsis_complete = truewhen it encounters such an update.
Structs§
- Proof
Tree Stream Summary - Aggregated statistics collected by folding a stream of
ProofTreeUpdates. - Proof
Tree Streamer - Streams partial proof tree updates as nodes resolve.
- Proof
Tree Update - A single update event in an ongoing proof tree derivation.
- Proof
Tree Update Sink - Receives streamed proof tree updates via an unbounded channel.