added new marker traits for PUS TC and PUS TM
Rust/spacepackets/pipeline/head There was a failure building this commit
Rust/spacepackets/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user