pub enum AssociationStatus {
NotComputed,
Found(Vec<usize>),
NotFound,
NotApplicable,
}Expand description
Status of a trace association attempt
Variants§
NotComputed
Association has not been computed yet
Found(Vec<usize>)
Association found - contains indices of related traces (can be multiple)
NotFound
Association was searched but no match found within the window
NotApplicable
This trace type does not support associations
Implementations§
Source§impl AssociationStatus
impl AssociationStatus
Sourcepub fn is_computed(&self) -> bool
pub fn is_computed(&self) -> bool
Returns true if the association has been computed (Found, NotFound, or NotApplicable)
Sourcepub fn get_index(&self) -> Option<usize>
pub fn get_index(&self) -> Option<usize>
Returns the first index if found (for backwards compatibility)
Sourcepub fn get_indices(&self) -> Option<&Vec<usize>>
pub fn get_indices(&self) -> Option<&Vec<usize>>
Returns all indices if found
Trait Implementations§
Source§impl Clone for AssociationStatus
impl Clone for AssociationStatus
Source§fn clone(&self) -> AssociationStatus
fn clone(&self) -> AssociationStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssociationStatus
impl Debug for AssociationStatus
Source§impl Default for AssociationStatus
impl Default for AssociationStatus
Source§fn default() -> AssociationStatus
fn default() -> AssociationStatus
Returns the “default value” for a type. Read more
Source§impl PartialEq for AssociationStatus
impl PartialEq for AssociationStatus
impl StructuralPartialEq for AssociationStatus
Auto Trait Implementations§
impl Freeze for AssociationStatus
impl RefUnwindSafe for AssociationStatus
impl Send for AssociationStatus
impl Sync for AssociationStatus
impl Unpin for AssociationStatus
impl UnwindSafe for AssociationStatus
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