Skip to main content

SyncRecycleCheck

Type Alias SyncRecycleCheck 

Source
pub type SyncRecycleCheck = Arc<dyn Fn(&Connection) -> Result<()> + Send + Sync + 'static>;
Expand description

A user-supplied synchronous per-checkout health check for SyncRecycleStrategy::Custom.

Returning Err evicts the connection from the pool.

Aliased Typeยง

pub struct SyncRecycleCheck { /* private fields */ }