waiter_trait/
non_interval.rs

1use super::*;
2
3/// [`Interval`] implementation that does nothing
4#[derive(Default, Clone)]
5pub struct NonInterval {}
6
7impl NonInterval {
8    pub fn new() -> Self {
9        Self {}
10    }
11}
12
13impl Interval for NonInterval {
14    #[inline(always)]
15    fn interval(&self) {}
16}