| 12 | use crate::helpers::{decode_freq, encode_freq}; |
| 13 | |
| 14 | pub trait PayloadCodec<Struct = Self> { |
| 15 | fn decode(cur: &mut Cursor<Vec<u8>>) -> Result<Struct>; |
| 16 | fn encode(&self) -> Result<Vec<u8>>; |
| 17 | } |
| 18 | |
| 19 | #[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)] |
| 20 | #[cfg_attr(feature = "serde", derive(Serialize))] |
nothing calls this directly
no outgoing calls
no test coverage detected