pub trait ScanExt<'a>: Sized {
// Required methods
fn scan_spans(self) -> Scanner<Self, CapturedSpans<'a>>;
fn scan_events(self) -> Scanner<Self, CapturedEvents<'a>>;
}
Expand description
Helper to wrap holders of CapturedSpan
s or CapturedEvent
s
(spans or the underlying Storage
) so that they are more convenient to use with Predicate
s.
See the module-level docs for examples of usage.
Required Methods§
Sourcefn scan_spans(self) -> Scanner<Self, CapturedSpans<'a>>
fn scan_spans(self) -> Scanner<Self, CapturedSpans<'a>>
Creates a scanner for the spans contained by this holder. What is meant by “contained” (i.e., whether the scan is deep or shallow), depends on the holder type and is documented at the corresponding impl.
Sourcefn scan_events(self) -> Scanner<Self, CapturedEvents<'a>>
fn scan_events(self) -> Scanner<Self, CapturedEvents<'a>>
Creates a scanner for the events contained by this holder. What is meant by “contained” (i.e., whether the scan is deep or shallow), depends on the holder type and is documented at the corresponding impl.
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.