/// Drops all connections from the pool
///
Drops all connections from the pool
Drops all connections from the pool
fn drop_all(&self) {
        log::warn!("Dropping all connections");
        let mut cons = self.connections.lock().unwrap();
        for _ in 0..cons.len() {
            self.available.fetch_sub(1, Ordering::SeqCst);
            std::mem::drop(cons.pop_front());
        }
    }
fn drop_all ( & self ) { log :: warn ! ( " " ) ; let mut cons = self . connections . lock ( ) . unwrap ( ) ; for _ in 0 .. cons . len ( ) { self . available . fetch_sub ( 1 , Ordering :: SeqCst ) ; std :: mem :: drop ( cons . pop_front ( ) ) ; } }
Drops all connections from the pool
Drops all connections from the pool
&self