(counter: u16)
| 495 | /// Decrement adaptive counter by one countdown step. |
| 496 | #[inline] |
| 497 | pub const fn advance_adaptive_counter(counter: u16) -> u16 { |
| 498 | counter.wrapping_sub(1 << BACKOFF_BITS) |
| 499 | } |
| 500 | |
| 501 | /// Reset adaptive counter with exponential backoff. |
| 502 | #[inline] |