pub trait GraphSink {
// Required methods
fn max_expansion_units(&self) -> usize;
fn max_successors_per_unit(&self) -> u64;
fn emitted(
&mut self,
generated: u64,
ordinal: Option<u64>,
) -> Result<(), Stopped>;
fn state(&mut self, heap: &mut Heap, step: Step<'_>) -> Result<(), Stopped>;
fn stutter(&mut self, source: u64) -> Result<(), Stopped>;
fn level_done(&mut self, level: u64, stats: Stats) -> Result<bool, Stopped>;
// Provided method
fn source_row(
&mut self,
_heap: &mut Heap,
_row: SourceRow<'_>,
) -> Result<(), Stopped> { ... }
}Expand description
Receives the behavior graph of a run.
Required Methods§
Sourcefn max_expansion_units(&self) -> usize
fn max_expansion_units(&self) -> usize
Maximum source states buffered by a parallel capture wave. This uses the collector’s existing source-wave bound, independently of workers.
Sourcefn max_successors_per_unit(&self) -> u64
fn max_successors_per_unit(&self) -> u64
Maximum emitted successors of one source, before retaining values.
Self::emitted must refuse an ordinal at or above this bound, so
speculative admission is reported in the ordinary commit order.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".