Struct diesel::connection::InTransactionStatus
source · #[non_exhaustive]pub struct InTransactionStatus {
pub transaction_depth: NonZeroU32,
pub requires_rollback_maybe_up_to_top_level: bool,
pub test_transaction: bool,
}
Expand description
Various status fields to track the status of a transaction manager with a started transaction
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.transaction_depth: NonZeroU32
The current depth of nested transactions
requires_rollback_maybe_up_to_top_level: bool
If that is registered, savepoints rollbacks will still be attempted, but failure to do so will not result in an error. (Some may succeed, some may not.)
test_transaction: bool
Is this transaction manager status marked as test-transaction?
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InTransactionStatus
impl RefUnwindSafe for InTransactionStatus
impl Send for InTransactionStatus
impl Sync for InTransactionStatus
impl Unpin for InTransactionStatus
impl UnwindSafe for InTransactionStatus
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