git-next/crates/git/src/generation.rs

12 lines
336 B
Rust
Raw Normal View History

2024-06-20 19:03:11 +01:00
use derive_more::Display;
use git_next_config::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
}
}