pub enum DefectiveTx<'a, R: RelationalBackend + 'a> {
Real(R::Tx<'a>, Defect),
Direct(&'a R),
}Expand description
The transaction of a Defective backend.
Variants§
Real(R::Tx<'a>, Defect)
The real transaction (the defect is elsewhere).
Direct(&'a R)
No transaction at all: statements run on the backend directly.
Trait Implementations§
Source§impl<R: RelationalBackend> RelationalTx for DefectiveTx<'_, R>
impl<R: RelationalBackend> RelationalTx for DefectiveTx<'_, R>
Auto Trait Implementations§
impl<'a, R> Freeze for DefectiveTx<'a, R>
impl<'a, R> RefUnwindSafe for DefectiveTx<'a, R>
impl<'a, R> Send for DefectiveTx<'a, R>
impl<'a, R> Sync for DefectiveTx<'a, R>
impl<'a, R> Unpin for DefectiveTx<'a, R>
impl<'a, R> UnsafeUnpin for DefectiveTx<'a, R>
impl<'a, R> UnwindSafe for DefectiveTx<'a, R>
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