TraceRelation

Struct TraceRelation 

Source
pub struct TraceRelation {
    pub parent: AssociationStatus,
    pub child: AssociationStatus,
}
Expand description

Holds the parent/child relationship for a trace

Fields§

§parent: AssociationStatus

Index of the parent trace (e.g., RRC for a NAS message)

§child: AssociationStatus

Index of the child trace (e.g., NAS for an RRC message with dedicated NAS)

Implementations§

Source§

impl TraceRelation

Source

pub fn new() -> Self

Create a new empty relation

Source

pub fn has_parent(&self) -> bool

Check if this trace has a parent

Source

pub fn has_child(&self) -> bool

Check if this trace has a child

Source

pub fn get_parent_index(&self) -> Option<usize>

Get parent index if available

Source

pub fn get_parent_indices(&self) -> Option<&Vec<usize>>

Get parent indices if available

Source

pub fn get_child_index(&self) -> Option<usize>

Get child index if available

Source

pub fn get_child_indices(&self) -> Option<&Vec<usize>>

Get child indices if available

Source

pub fn set_parent(&mut self, index: usize)

Set parent as found (replaces existing)

Source

pub fn add_parent(&mut self, index: usize) -> bool

Add a parent index (appends to existing if Found)

Source

pub fn set_child(&mut self, index: usize)

Set child as found (replaces existing)

Source

pub fn add_child(&mut self, index: usize) -> bool

Add a child index (appends to existing if Found)

Source

pub fn set_parent_not_found(&mut self)

Mark parent search as completed with no result

Source

pub fn set_child_not_found(&mut self)

Mark child search as completed with no result

Source

pub fn set_parent_not_applicable(&mut self)

Mark parent as not applicable for this trace type

Source

pub fn set_child_not_applicable(&mut self)

Mark child as not applicable for this trace type

Source

pub fn invalidate(&mut self)

Reset the relation (mark as not computed) - useful when new traces arrive

Trait Implementations§

Source§

impl Clone for TraceRelation

Source§

fn clone(&self) -> TraceRelation

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TraceRelation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TraceRelation

Source§

fn default() -> TraceRelation

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,