Function kernel::serial_trace::dispatcher::with_default
source ยท pub fn with_default<T>(dispatcher: &Dispatch, f: impl FnOnce() -> T) -> T
Expand description
Sets this dispatch as the default for the duration of a closure.
The default dispatcher is used when creating a new span or
Event
.
Note: This function required the Rust standard library.no_std
users should useset_global_default
instead.