statime/datastructures/datasets/
path_trace.rs1use arrayvec::ArrayVec;
2
3use crate::datastructures::{common::ClockIdentity, messages::MAX_DATA_LEN};
4
5#[derive(Clone, Debug, Eq, PartialEq)]
8#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
9pub struct PathTraceDS {
10 pub list: ArrayVec<ClockIdentity, { MAX_DATA_LEN / 8 }>,
12 pub enable: bool,
14}
15
16impl PathTraceDS {
17 pub(crate) fn new(enable: bool) -> Self {
18 PathTraceDS {
19 list: Default::default(),
20 enable,
21 }
22 }
23}