pub(crate) fn clear(&self) {
        self.inner.generation.fetch_add(1, Ordering::SeqCst);

        self.emit_event(|handler| {
            let event = PoolClearedEvent {
                address: self.inner.address.clone(),
            };

            handler.handle_pool_cleared_event(event);
        });
    }
/// Increments the generation of the pool. Rather than eagerly removing stale connections from
/// the pool, they are left for the background thread to clean up.
Increments the generation of the pool. Rather than eagerly removing stale connections from
the pool, they are left for the background thread to clean up.
Increments the generation of the pool . Rather than eagerly removing stale connections from the pool they are left for the background thread to clean up .
pub(crate) fn clear(&self) {
        self.inner.generation.fetch_add(1, Ordering::SeqCst);
        self.emit_event(|handler| {
            let event = PoolClearedEvent {
                address: self.inner.address.clone(),
            };
            handler.handle_pool_cleared_event(event);
        });
    }
pub ( crate ) fn clear ( & self ) { self . inner . generation . fetch_add ( 1 , Ordering :: SeqCst ) ; self . emit_event ( | handler | { let event = PoolClearedEvent { address : self . inner . address . clone ( ) , } ; handler . handle_pool_cleared_event ( event ) ; } ) ; }
Increments the generation of the pool.
Increments the generation of the pool .
&self
&self