pub trait IntoExecutor<'a>: Send + 'a {
type DB: SqlDialect;
// Required method
fn into_executor(self) -> Executor<'a, Self::DB>;
}Expand description
A trait for types that can be converted into an Executor.
Required Associated Types§
Sourcetype DB: SqlDialect
type DB: SqlDialect
The database dialect associated with this executor.
Required Methods§
Sourcefn into_executor(self) -> Executor<'a, Self::DB>
fn into_executor(self) -> Executor<'a, Self::DB>
Converts the type into an Executor.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl<'a, DB> IntoExecutor<'a> for &'a Pool<DB>where
DB: SqlDialect,
impl<'a, DB> IntoExecutor<'a> for &'a Pool<DB>where
DB: SqlDialect,
Source§impl<'a, DB> IntoExecutor<'a> for Executor<'a, DB>where
DB: SqlDialect,
impl<'a, DB> IntoExecutor<'a> for Executor<'a, DB>where
DB: SqlDialect,
Source§impl<'a> IntoExecutor<'a> for &'a mut PgConnection
Available on crate feature postgres only.
impl<'a> IntoExecutor<'a> for &'a mut PgConnection
Available on crate feature
postgres only.Source§impl<'a> IntoExecutor<'a> for &'a mut SqliteConnection
Available on crate feature sqlite only.
impl<'a> IntoExecutor<'a> for &'a mut SqliteConnection
Available on crate feature
sqlite only.