pub struct Transaction { /* private fields */ }
Expand description
Transaction on the database
Implementations§
Source§impl Transaction
impl Transaction
Sourcepub fn mode(&self) -> Result<TransactionMode>
pub fn mode(&self) -> Result<TransactionMode>
Returns mode of the transaction
Sourcepub fn store_names(&self) -> Vec<String>
pub fn store_names(&self) -> Vec<String>
Returns names of all stores in the transaction
Sourcepub async fn done(self) -> Result<TransactionResult>
pub async fn done(self) -> Result<TransactionResult>
Waits for a transaction to complete.
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