pub struct Transaction { /* private fields */ }Expand description
The transaction a mutator runs in.
Implementations§
Source§impl Transaction
impl Transaction
Sourcepub fn mutation_id(&self) -> f64
pub fn mutation_id(&self) -> f64
The mutation’s ID.
Sourcepub fn reason(&self) -> Reason
pub fn reason(&self) -> Reason
Why the mutator is running: optimistically, or again in a rebase.
Sourcepub fn table<'a>(&'a self, table: &'a str) -> TableMutator<'a>
pub fn table<'a>(&'a self, table: &'a str) -> TableMutator<'a>
The CRUD operations on table: tx.mutate.issue in JS.
Auto Trait Implementations§
impl !Freeze for Transaction
impl !RefUnwindSafe for Transaction
impl !Send for Transaction
impl !Sync for Transaction
impl !UnwindSafe for Transaction
impl Forget for Transaction
impl Move for Transaction
impl Unpin for Transaction
impl UnsafeUnpin 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