1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#![allow(dead_code)] use spacepackets::util::UnsignedByteField; pub struct SourceHandler { id: UnsignedByteField, } impl SourceHandler { pub fn new(id: impl Into<UnsignedByteField>) -> Self { Self { id: id.into() } } } #[cfg(test)] mod tests {}