waiter-trait 0.9.2

Traits used to wait and timeout.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

/// [`Interval`] implementation that does nothing
#[derive(Default, Clone)]
pub struct NonInterval {}

impl NonInterval {
    pub fn new() -> Self {
        Self {}
    }
}

impl Interval for NonInterval {
    #[inline(always)]
    fn interval(&self) {}
}