Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Side channel for non-fatal events emitted during clustering (§11.1).

Strategies and the tree builder report per-record skip events through a Diagnostics sink rather than aborting. The face-cli binary wires its sink to stderr printing and to the envelope’s result.skipped counter; tests typically use VecDiagnostics to assert on the recorded events, and call sites that don’t care use NullDiagnostics.

Structs§

NullDiagnostics
A no-op sink, useful in tests and as a default when callers don’t care about per-record warnings.
VecDiagnostics
A Vec-backed sink for tests and integration code that wants to assert on the recorded skip events.

Traits§

Diagnostics
Side channel for non-fatal events emitted during clustering.