Module validator

Module validator 

Source
Expand description

Lenient parser diagnostic stream.

The codec accepts garbage from the wire (so we never silently lose real-world reflector traffic), but every parser pushes structured Diagnostic events into a DiagnosticSink. The consumer chooses what to do with them — log, drop, alert, or reject the packet.

Structs§

NullSink
Discards every diagnostic. Default for tests and pure-codec callers that don’t want to track parser observations.
TracingSink
Routes every diagnostic to a tracing::warn! event.
VecSink
Captures diagnostics into an in-memory Vec. Used by tests and by Session::diagnostics() (the user-facing accessor).

Enums§

AuthHostSkipReason
Reason an auth host record was skipped during chunk parsing.
CallsignField
Which callsign field a Diagnostic::CallsignNonPrintable refers to.
Diagnostic
One observable malformation detected by a lenient parser.

Traits§

DiagnosticSink
Sink for Diagnostic events emitted by lenient parsers.