pub enum EventKind {
Panic,
NativeCrash,
Corruption,
InvariantViolation,
Error,
}Expand description
The failure class a report describes.
A single enum across projects keeps grouping and triage uniform. The
storage-specific classes (Corruption, InvariantViolation) are the reason
this exists over a panic-only crash reporter: they are usually returned
errors, never crashes, so nothing else would capture them.
Variants§
Panic
A Rust panic (caught by the installed panic hook).
NativeCrash
A native/hardware crash (SIGSEGV, abort, stack overflow) captured
out-of-process as a minidump. faultbox records the metadata; the
minidump itself is an Artifact.
Corruption
Detected data corruption (checksum/AEAD failure, structural violation). Carries rich domain context and usually a preserved artifact.
InvariantViolation
A runtime invariant/assertion that must hold was found violated — caught cheaply in production rather than only under a dev-only checker.
Error
A recoverable error deemed report-worthy by the emitting site.