pub fn trace<F: FnOnce() -> String>(scope: &str, message: F)Expand description
Emit a trace message when tracing is on.
The message is built by a closure so that building it costs nothing while tracing is off, which is the normal case.
ยงArguments
scope- Where the message comes from, for examplereadable.decodemessage- Builds the message text