pub struct TraceMatcher;Expand description
Matcher for finding related trace relationships Provides functionality to search for related traces (parent/child relationships) based on configurable association rules and search directions.
Implementations§
Source§impl TraceMatcher
impl TraceMatcher
Sourcepub fn find_relative(
source_index: usize,
events: &[Trace],
rule: &dyn AssociationRule,
source_layer: &Layer,
target_layer: &Layer,
) -> AssociationStatus
pub fn find_relative( source_index: usize, events: &[Trace], rule: &dyn AssociationRule, source_layer: &Layer, target_layer: &Layer, ) -> AssociationStatus
Find a relative trace using the rule’s source and target layers This is the main public API - the rule defines what we’re searching for
§Arguments
source_index- Index of the source trace in the events vectorevents- Reference to all tracesrule- The association rule to use for matchingsource_layer- The layer the source trace should havetarget_layer- The layer we’re searching for
Sourcepub fn find_relative_reverse(
source_index: usize,
events: &[Trace],
rule: &dyn AssociationRule,
) -> AssociationStatus
pub fn find_relative_reverse( source_index: usize, events: &[Trace], rule: &dyn AssociationRule, ) -> AssociationStatus
Find a relative trace with swapped source/target layers (reverse search)
Auto Trait Implementations§
impl Freeze for TraceMatcher
impl RefUnwindSafe for TraceMatcher
impl Send for TraceMatcher
impl Sync for TraceMatcher
impl Unpin for TraceMatcher
impl UnwindSafe for TraceMatcher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more