added new marker traits for PUS TC and PUS TM
Rust/spacepackets/pipeline/head There was a failure building this commit

This commit is contained in:
2023-07-10 23:36:27 +02:00
parent c0e70daf58
commit 6eb3cbbd84
2 changed files with 13 additions and 0 deletions
+6
View File
@@ -20,6 +20,8 @@ use delegate::delegate;
pub use legacy_tm::*;
pub trait IsPusTelemetry {}
/// Length without timestamp
pub const PUC_TM_MIN_SEC_HEADER_LEN: usize = 7;
pub const PUS_TM_MIN_LEN_WITHOUT_SOURCE_DATA: usize =
@@ -754,6 +756,8 @@ impl GenericPusTmSecondaryHeader for PusTmCreator<'_> {
});
}
impl IsPusTelemetry for PusTmCreator<'_> {}
/// This class models the PUS C telemetry packet. It is the primary data structure to read
/// a telemetry packet from raw bytes.
///
@@ -871,6 +875,8 @@ impl GenericPusTmSecondaryHeader for PusTmReader<'_> {
});
}
impl IsPusTelemetry for PusTmReader<'_> {}
impl PartialEq<PusTmCreator<'_>> for PusTmReader<'_> {
fn eq(&self, other: &PusTmCreator<'_>) -> bool {
self.sp_header == other.sp_header