Skip to main content

record

Function record 

Source
pub fn record(layer: Layer, detail: &str) -> Result<(), String>
Expand description

Record that layer was crossed.

Returns Err with an operator-facing message when strict mode refuses this layer; the caller must propagate rather than fall back. Always counts, strict or not — the counts are useful on their own, and a caller that wants to know “did the VM really do this” reads them.

§Errors

When strict is on and the layer Layer::is_fatal_under_strict.