Reserve and return the next outbound sequence number. Starts at 1 and is strictly increasing across all targets for this sender.
(&self)
| 54 | /// Reserve and return the next outbound sequence number. Starts at 1 |
| 55 | /// and is strictly increasing across all targets for this sender. |
| 56 | pub fn next(&self) -> u64 { |
| 57 | self.counter.fetch_add(1, Ordering::Relaxed) + 1 |
| 58 | } |
| 59 | |
| 60 | /// Current counter value (0 if no frames have been sent). Test-only. |
| 61 | #[cfg(test)] |
no outgoing calls