pub fn state(&self) -> State {
        let mut locked = self.inner.internals.try_lock();
        while locked.is_none() {
            locked = self.inner.internals.try_lock();
        }
        let locked = locked.unwrap();
        State {
            connections: locked.num_conns,
            idle_connections: locked.conns.len() as u32,
            _p: (),
        }
    }
/// Returns information about the current state of the pool.
Returns information about the current state of the pool.
Returns information about the current state of the pool .
pub fn state(&self) -> State {
        let mut locked = self.inner.internals.try_lock();
        while locked.is_none() {
            locked = self.inner.internals.try_lock();
        }
        let locked = locked.unwrap();
        State {
            connections: locked.num_conns,
            idle_connections: locked.conns.len() as u32,
            _p: (),
        }
    }
pub fn state ( & self ) -> State { let mut locked = self . inner . internals . try_lock ( ) ; while locked . is_none ( ) { locked = self . inner . internals . try_lock ( ) ; } let locked = locked . unwrap ( ) ; State { connections : locked . num_conns , idle_connections : locked . conns . len ( ) as u32 , _p : ( ) , } }
Returns information about the current state of the pool.
Returns information about the current state of the pool .
&self
&self