pub fn emit_app_marker(id: u32, arg: u32) -> Result<(), AppMarkerIdOutOfRange>Expand description
Emit one application event (id, arg) through the installed trace sink.
id must be in APP_MARKER_FIRST..=APP_MARKER_LAST; any other id is
refused with AppMarkerIdOutOfRange and nothing is emitted. With no sink
installed, or in a build without the trace-callbacks feature, an in-range
call emits nothing and returns Ok.
Safe from any thread and from inside a callback: it reads one atomic and calls the sink, whose contract already covers being called from every thread that dispatches.