Skip to main content

AnyDatabaseConnectionConfig

Trait AnyDatabaseConnectionConfig 

Source
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§

Source

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

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn AnyDatabaseConnectionConfig + Send + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn AnyDatabaseConnectionConfig + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn AnyDatabaseConnectionConfig + Send + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§