Packet ID trait implementations #30

Merged
muellerr merged 10 commits from packet-id-trait-impls into main 2023-09-18 18:19:32 +02:00
Showing only changes of commit 963b9dbb5f - Show all commits

View File

@ -283,6 +283,7 @@ impl PacketId {
self.apid
}
#[inline]
pub fn raw(&self) -> u16 {
((self.ptype as u16) << 12) | ((self.sec_header_flag as u16) << 11) | self.apid
}