autoreturn_pool/
config.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::time::Duration;

/// Configuration for the pool.
/// Wait indefinitely by default.
#[derive(Clone, Debug)]
pub struct Config {
    pub wait_duration: Duration,
}

impl Default for Config {
    fn default() -> Self {
        Self {
            wait_duration: Duration::MAX,
        }
    }
}