pub fn new(
        name: &'static str,
        limit: S,
        time_provider: Arc<dyn TimeProvider>,
        metric_registry: Arc<metric::Registry>,
    ) -> Self {
        Self {
            inner: Mutex::new(ResourcePoolInner::new(limit, name, &metric_registry)),
            name,
            metric_registry,
            time_provider,
        }
    }
/// Creates new empty resource pool with given limit.
Creates new empty resource pool with given limit.
Creates new empty resource pool with given limit .
pub fn new(
        name: &'static str,
        limit: S,
        time_provider: Arc<dyn TimeProvider>,
        metric_registry: Arc<metric::Registry>,
    ) -> Self {
        Self {
            inner: Mutex::new(ResourcePoolInner::new(limit, name, &metric_registry)),
            name,
            metric_registry,
            time_provider,
        }
    }
pub fn new ( name : & ' static str , limit : S , time_provider : Arc < dyn TimeProvider > , metric_registry : Arc < metric :: Registry > , ) -> Self { Self { inner : Mutex :: new ( ResourcePoolInner :: new ( limit , name , & metric_registry ) ) , name , metric_registry , time_provider , } }
Creates new empty resource pool with given limit.
Creates new empty resource pool with given limit .
name
&'static str
limit
S
time_provider
Arc<dyn TimeProvider>
metric_registry
Arc<metric::Registry>
name
&'static str
limit
S
time_provider
Arc<dyn TimeProvider>
metric_registry
Arc<metric::Registry>