pub enum Transaction {
Begin {
read_only: bool,
},
Commit,
Rollback,
}Expand description
What a transaction statement asks for.
Variants§
Begin
BEGIN or START TRANSACTION, and whether READ ONLY was written after it.
Commit
COMMIT or END.
Rollback
ROLLBACK or ABORT.
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
impl Copy for Transaction
Source§impl Debug for Transaction
impl Debug for Transaction
impl Eq for Transaction
Source§impl PartialEq for Transaction
impl PartialEq for Transaction
impl StructuralPartialEq for Transaction
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin for Transaction
impl UnwindSafe for Transaction
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