pub trait TransactionMode: Send + Sync {
// Required methods
fn begin(
conn: &mut <Db as Database>::Connection,
) -> impl Future<Output = Result<()>> + Send;
fn display() -> &'static str;
}
Expand description
Trait for marker types indicating what type of access a transaction has to the database.
Required Methods§
fn begin( conn: &mut <Db as Database>::Connection, ) -> impl Future<Output = Result<()>> + Send
fn display() -> &'static str
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.