quota 0.2.0

High-performance Rate-limiter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct QuotaId {
    pub(crate) index: usize,
    pub(crate) generation: u32,
}

impl QuotaId {
    #[inline]
    pub(crate) fn new(index: usize, generation: u32) -> Self {
        Self { index, generation }
    }
}

#[cfg(test)]
mod tests;