Skip to main content

DfirErasedSync

Type Alias DfirErasedSync 

Source
pub type DfirErasedSync<M = DfirMetrics> = Dfir<TickClosureErasedSync<M>>;
Expand description

A type-erased Dfir that supports only the sync runners (Dfir::run_tick_sync, Dfir::run_available_sync). Created via Dfir::into_erased_sync.

This is the type to store a generated graph as when driving it synchronously, e.g. from an embedding application’s own event loop: it is nameable, allocation-free per tick, and its vtable carries nothing for the async path.

M is the MetricsState of the erased dataflow: DfirMetrics (the default) if metrics are tracked, or () if not.

Aliased Type§

pub struct DfirErasedSync<M = DfirMetrics> { /* private fields */ }