srt_protocol/packet/
msg_number.rs

1use super::modular_num::modular_num;
2
3modular_num! {
4    pub MsgNumber(u32, 26)
5}
6
7impl MsgNumber {
8    #[must_use]
9    pub fn increment(&mut self) -> Self {
10        let result = *self;
11        *self += 1;
12        result
13    }
14}