Trait tracing_capture::predicates::ScanExt
source · 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.
Object Safety§
This trait is not object safe.