Skip to main content

record_with

Function record_with 

Source
pub fn record_with<T: Serialize>(kind: EventKind, fields: impl FnOnce() -> T)
Expand description

Lazy producer: no payload construction or allocation when disabled.