public_mode #38

Merged
muellerr merged 2 commits from public_mode into main 2023-02-28 13:18:29 +01:00
Showing only changes of commit 153659bb88 - Show all commits

View File

@ -35,6 +35,10 @@ impl ModeAndSubmode {
submode: u16::from_be_bytes(buf[4..6].try_into().unwrap()),
})
}
pub fn mode(&self) -> u32 {self.mode}
pub fn submode(&self) -> u16 {self.submode}
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]