pub trait AnyDatabaseConnectionConfig:
Any
+ BoxedAny
+ DynClone
+ Send
+ Sync
+ Debug
+ Serialize
+ Deserialize {
// Required method
fn new_conn<'life0, 'async_trait>(
&'life0 self,
id: CompactString,
pool_min_size: Option<usize>,
pool_max_size: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn AnyDatabaseConnection>, Box<dyn Any>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
TODO: add documentation.
Required Methods§
fn new_conn<'life0, 'async_trait>(
&'life0 self,
id: CompactString,
pool_min_size: Option<usize>,
pool_max_size: Option<usize>,
) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn AnyDatabaseConnection>, Box<dyn Any>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Trait Implementations§
Source§impl<'typetag> Serialize for dyn AnyDatabaseConnectionConfig + 'typetag
impl<'typetag> Serialize for dyn AnyDatabaseConnectionConfig + 'typetag
Source§impl<'typetag> Serialize for dyn AnyDatabaseConnectionConfig + Send + 'typetag
impl<'typetag> Serialize for dyn AnyDatabaseConnectionConfig + Send + 'typetag
Source§impl<'typetag> Serialize for dyn AnyDatabaseConnectionConfig + Sync + 'typetag
impl<'typetag> Serialize for dyn AnyDatabaseConnectionConfig + Sync + 'typetag
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".