Function metrics::with_local_recorder
source · pub fn with_local_recorder<T>(
recorder: &dyn Recorder,
f: impl FnOnce() -> T
) -> T
Expand description
Runs the closure with the given recorder set as the global recorder for the duration.