pub fn disconnect(mut self) -> DisconnectPool {
        let was_closed = self.inner.close.swap(true, atomic::Ordering::AcqRel);
        if !was_closed {
            // make sure we wake up the Recycler.
            //
            // note the lack of an .expect() here, because the Recycler may decide that there are
            // no connections to wait for and exit quickly!
            let _ = self.drop.try_send(None).is_ok();
        }

        new_disconnect_pool(self)
    }
/// Returns future that disconnects this pool from server and resolves to `()`.
///
/// Active connections taken from this pool should be disconnected manually.
/// Also all pending and new `GetConn`'s will resolve to error.
Returns future that disconnects this pool from server and resolves to `()`.
Active connections taken from this pool should be disconnected manually.
Also all pending and new `GetConn`'s will resolve to error.
Returns future that disconnects this pool from server and resolves to ` () ` . Active connections taken from this pool should be disconnected manually . Also all pending and new ` GetConn ` ' s will resolve to error .
pub fn disconnect(mut self) -> DisconnectPool {
        let was_closed = self.inner.close.swap(true, atomic::Ordering::AcqRel);
        if !was_closed {
            // make sure we wake up the Recycler.
            //
            // note the lack of an .expect() here, because the Recycler may decide that there are
            // no connections to wait for and exit quickly!
            let _ = self.drop.try_send(None).is_ok();
        }
        new_disconnect_pool(self)
    }
pub fn disconnect ( mut self ) -> DisconnectPool { let was_closed = self . inner . close . swap ( true , atomic :: Ordering :: AcqRel ) ; if ! was_closed { // make sure we wake up the Recycler. // // note the lack of an .expect() here, because the Recycler may decide that there are // no connections to wait for and exit quickly! let _ = self . drop . try_send ( None ) . is_ok ( ) ; } new_disconnect_pool ( self ) }
Returns future that disconnects this pool from server and resolves to `()`.
Returns future that disconnects this pool from server and resolves to ` () ` .
mut self
mut self