fn close_connection(&self, conn: Connection, reason: ConnectionClosedReason) {
        self.emit_event(|handler| {
            handler.handle_connection_closed_event(conn.closed_event(reason));
        });

        self.total_connection_count.fetch_sub(1, Ordering::SeqCst);
    }
/// Internal helper to close a connection, emit the event for it being closed, and decrement the
/// total connection count. Any connection being closed by the pool should be closed by using
/// this method.
Internal helper to close a connection, emit the event for it being closed, and decrement the
total connection count. Any connection being closed by the pool should be closed by using
this method.
Internal helper to close a connection emit the event for it being closed and decrement the total connection count . Any connection being closed by the pool should be closed by using this method .
fn close_connection(&self, conn: Connection, reason: ConnectionClosedReason) {
        self.emit_event(|handler| {
            handler.handle_connection_closed_event(conn.closed_event(reason));
        });
        self.total_connection_count.fetch_sub(1, Ordering::SeqCst);
    }
fn close_connection ( & self , conn : Connection , reason : ConnectionClosedReason ) { self . emit_event ( | handler | { handler . handle_connection_closed_event ( conn . closed_event ( reason ) ) ; } ) ; self . total_connection_count . fetch_sub ( 1 , Ordering :: SeqCst ) ; }
Internal helper to close a connection, emit the event for it being closed, and decrement the
total connection count.
Internal helper to close a connection emit the event for it being closed and decrement the total connection count .
&self
conn
Connection
reason
ConnectionClosedReason
&self
conn
Connection
reason
ConnectionClosedReason