pub trait ConnectionFactory<T>: Send + Sync {
// Required method
fn create(&self) -> Pin<Box<dyn Future<Output = Result<T>> + Send>>;
// Provided method
fn is_healthy(&self, _conn: &T) -> bool { ... }
}Expand description
Factory trait for creating new connections
Required Methods§
Provided Methods§
Sourcefn is_healthy(&self, _conn: &T) -> bool
fn is_healthy(&self, _conn: &T) -> bool
Check if a connection is still healthy