Skip to main content

rootle_kernel/
generation.rs

1//! Monotonic request issuance. Exhaustion refuses instead of reusing an epoch.
2
3/// Issue the next generation, or refuse at the end of the identifier space.
4pub fn next_generation(current: u64) -> Option<u64> {
5    if current == u64::MAX {
6        None
7    } else {
8        Some(current + 1)
9    }
10}