use derive_more::Display;
use crate::newtype;
newtype!(
Generation,
u32,
Display,
Default,
Copy,
r#"A counter for the server generation.
This counter is increased by one each time the server restarts itself when the configuration file is updated."#
);
impl Generation {
pub fn inc(&mut self) {
self.0 += 1;
}
}