pub trait PoolManager {
// Required methods
fn with_config(config: &'static Table) -> Self;
async fn check_availability(&self) -> bool;
async fn close(&self);
}
Expand description
A manager of the connection pool.
Required Methods§
Sourcefn with_config(config: &'static Table) -> Self
fn with_config(config: &'static Table) -> Self
Connects lazily to the database according to the config.
Sourceasync fn check_availability(&self) -> bool
async fn check_availability(&self) -> bool
Checks the availability of the connection pool.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl PoolManager for ConnectionPool<DatabasePool>
Available on crate feature
orm-sqlx
only.