From f4069577528fd2df161d8362f8312cb55548bff4 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 3 Jul 2023 00:57:38 +0200 Subject: [PATCH] docs --- src/ecss/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ecss/mod.rs b/src/ecss/mod.rs index e8919ed..d3697ab 100644 --- a/src/ecss/mod.rs +++ b/src/ecss/mod.rs @@ -349,6 +349,9 @@ pub type EcssEnumU16 = GenericEcssEnumWrapper; pub type EcssEnumU32 = GenericEcssEnumWrapper; pub type EcssEnumU64 = GenericEcssEnumWrapper; +/// Generic trait for PUS packet abstractions which can written to a raw slice as their raw +/// byte representation. This is especially useful for generic abstractions which depend only +/// on the serialization of those packets. pub trait SerializablePusPacket { fn len_packed(&self) -> usize; fn write_to_bytes(&self, slice: &mut [u8]) -> Result;