tracing::dispatch

Function get_default

Source
pub fn get_default<T, F>(f: F) -> T
where F: FnMut(&Dispatch) -> T,
Expand description

Executes a closure with a reference to the current dispatcher.