pub struct AnyTransactionManager;Available on crate feature
any only.Trait Implementationsยง
Sourceยงimpl TransactionManager for AnyTransactionManager
impl TransactionManager for AnyTransactionManager
type Database = Any
Sourceยงfn begin(
conn: &mut AnyConnection,
statement: Option<SqlStr>,
) -> impl Future<Output = Result<(), Error>> + Send
fn begin( conn: &mut AnyConnection, statement: Option<SqlStr>, ) -> impl Future<Output = Result<(), Error>> + Send
Begin a new transaction or establish a savepoint within the active transaction. Read more
Sourceยงfn commit(
conn: &mut AnyConnection,
) -> impl Future<Output = Result<(), Error>> + Send
fn commit( conn: &mut AnyConnection, ) -> impl Future<Output = Result<(), Error>> + Send
Commit the active transaction or release the most recent savepoint.
Sourceยงfn rollback(
conn: &mut AnyConnection,
) -> impl Future<Output = Result<(), Error>> + Send
fn rollback( conn: &mut AnyConnection, ) -> impl Future<Output = Result<(), Error>> + Send
Abort the active transaction or restore from the most recent savepoint.
Sourceยงfn start_rollback(conn: &mut AnyConnection)
fn start_rollback(conn: &mut AnyConnection)
Starts to abort the active transaction or restore from the most recent snapshot.
Sourceยงfn get_transaction_depth(
conn: &<<AnyTransactionManager as TransactionManager>::Database as Database>::Connection,
) -> usize
fn get_transaction_depth( conn: &<<AnyTransactionManager as TransactionManager>::Database as Database>::Connection, ) -> usize
Returns the current transaction depth. Read more
Auto Trait Implementationsยง
impl Freeze for AnyTransactionManager
impl RefUnwindSafe for AnyTransactionManager
impl Send for AnyTransactionManager
impl Sync for AnyTransactionManager
impl Unpin for AnyTransactionManager
impl UnwindSafe for AnyTransactionManager
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self> โ
fn into_either(self, into_left: bool) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more