pub struct Transaction { /* private fields */ }Implementations§
Source§impl Transaction
impl Transaction
pub fn new(id: u64) -> Self
pub fn id(&self) -> u64
pub fn state(&self) -> &TransactionState
pub fn is_active(&self) -> bool
pub fn add_operation( &mut self, op: TransactionOp, old_value: Option<Vec<u8>>, ) -> Result<()>
pub fn commit(&mut self) -> Result<()>
pub fn rollback(&mut self) -> Result<Vec<(Vec<u8>, Option<Vec<u8>>)>>
pub fn operations(&self) -> &[TransactionOp]
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin 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