pub trait ConfigExt {
// Required methods
fn into_pool(self) -> Result<Pool, BuildError>;
fn into_pool_with_size(self, max_size: usize) -> Result<Pool, BuildError>;
}Expand description
Extension trait for creating pools directly from Config
Required Methods§
Sourcefn into_pool(self) -> Result<Pool, BuildError>
fn into_pool(self) -> Result<Pool, BuildError>
Create a connection pool with default configuration
Sourcefn into_pool_with_size(self, max_size: usize) -> Result<Pool, BuildError>
fn into_pool_with_size(self, max_size: usize) -> Result<Pool, BuildError>
Create a connection pool with the specified maximum size