pub trait SpanExt {
// Required methods
fn rec_str<T>(&self, field: &'static str, value: &T)
where T: ToString;
fn rec_opt<T>(&self, field: &'static str, value: &Option<T>)
where T: ToString;
// Provided method
fn with<F>(fill: F)
where F: Fn(Span) { ... }
}
Expand description
Extensions for tracing::Span
.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.