use arrayvec::ArrayVec;
use crate::datastructures::{common::ClockIdentity, messages::MAX_DATA_LEN};
#[derive(Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct PathTraceDS {
pub list: ArrayVec<ClockIdentity, { MAX_DATA_LEN / 8 }>,
pub enable: bool,
}
impl PathTraceDS {
pub(crate) fn new(enable: bool) -> Self {
PathTraceDS {
list: Default::default(),
enable,
}
}
}