Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

The codes this crate emits.

The record itself lives in powerio-core, below this crate and below the .pio.json document model, so a distribution finding reaches a package without a translation step. What lives here is the distribution side registry: one DiagnosticInfo per code, declared once, so an emission site names an entry rather than a loose string.

Codes are families, not one per site: what differs between two sites of a family is which object or property it was, which belongs in details.

Modules§

codes

Structs§

Diagnostic
One coded user facing finding.
DiagnosticCode
Stable dotted identity of one diagnostic.
DiagnosticInfo
One entry in a crate’s diagnostic registry.

Enums§

DiagnosticSeverity
Severity of one user facing finding.
DiagnosticStage
Pipeline stage encoded by the first segment of a diagnostic code.

Functions§

check_registry
Check grammar, namespace, uniqueness, summaries, and fatal category data.
registry
Every code this crate declares.
render_diagnostic
render_diagnostics